mirror of
https://github.com/evennia/evennia.git
synced 2026-03-28 10:37:16 +01:00
Changed help category to be displayed with title() instead of with capitalize(). Resolves Issue 289.
This commit is contained in:
parent
0141f94e9d
commit
b5dd21864d
1 changed files with 2 additions and 2 deletions
|
|
@ -48,12 +48,12 @@ def format_help_list(hdict_cmds, hdict_db):
|
|||
if hdict_cmds and any(hdict_cmds.values()):
|
||||
string += "\n" + SEP + "\n {CCommand help entries{n\n" + SEP
|
||||
for category in sorted(hdict_cmds.keys()):
|
||||
string += "\n {w%s{n:\n" % (str(category).capitalize())
|
||||
string += "\n {w%s{n:\n" % (str(category).title())
|
||||
string += "{G" + fill(", ".join(sorted(hdict_cmds[category]))) + "{n"
|
||||
if hdict_db and any(hdict_db.values()):
|
||||
string += "\n\n" + SEP + "\n\r {COther help entries{n\n" + SEP
|
||||
for category in sorted(hdict_db.keys()):
|
||||
string += "\n\r {w%s{n:\n" % (str(category).capitalize())
|
||||
string += "\n\r {w%s{n:\n" % (str(category).title())
|
||||
string += "{G" + fill(", ".join(sorted([str(topic) for topic in hdict_db[category]]))) + "{n"
|
||||
return string
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue