Made cyan separators work.

This commit is contained in:
Griatch 2015-03-21 07:53:38 +01:00
parent fc579ef0bb
commit 22f220f58d

View file

@ -27,14 +27,14 @@ def format_help_entry(title, help_text, aliases=None, suggested=None):
""" """
string = _SEP + "\n" string = _SEP + "\n"
if title: if title:
string += "{CHelp topic for {w%s{n" % title string += "{CHelp for {w%s{n" % title
if aliases: if aliases:
string += " {C(aliases: {w%s{n{C){n" % ("{C,{n ".join(aliases)) string += " {C(aliases: %s{C){n" % ("{C,{n ".join("{w%s{n" % ali for ali in aliases))
if help_text: if help_text:
string += "\n%s" % dedent(help_text.rstrip()) string += "\n%s" % dedent(help_text.rstrip())
if suggested: if suggested:
string += "\n\n{CSuggested:{n " string += "\n\n{CSuggested:{n "
string += "{w%s{n" % fill("{C,{n ".join(suggested)) string += "%s" % fill("{C,{n ".join("{w%s{n" % sug for sug in suggested))
string.strip() string.strip()
string += "\n" + _SEP string += "\n" + _SEP
return string return string