small source code formatting blips

pull/4/head
Blake DeMarcy 2017-04-24 16:24:53 -05:00
parent 86e91102eb
commit a44b60ca35
2 changed files with 6 additions and 3 deletions

View File

@ -938,9 +938,13 @@ class App(object):
def formatting_help(self, *_):
"""
Pops a help window with formatting directives.
Pops a help window for formatting directives.
"""
message = network.fake_message("\n\n".join(format_help))
# we can "recycle" the server's formatting abilities to
# use the same syntax for the help text itself
message = network.fake_message(
"\n\n".join(format_help), format="sequential")
widget = OptionsMenu(
urwid.ListBox(
urwid.SimpleFocusListWalker([

View File

@ -81,7 +81,6 @@ underline = re.compile(r"(?<!\\)_{2}(.+?)(?<!\\)_{2}")
escapes = re.compile(r"\\([*_]{2})")
def apply_directives(text):
# is there a better way to do this? smh....
text = quotes.sub(lambda m: "[quote: %s]" % m.group(1), text)