small source code formatting blips
parent
86e91102eb
commit
a44b60ca35
|
@ -938,9 +938,13 @@ class App(object):
|
||||||
|
|
||||||
def formatting_help(self, *_):
|
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(
|
widget = OptionsMenu(
|
||||||
urwid.ListBox(
|
urwid.ListBox(
|
||||||
urwid.SimpleFocusListWalker([
|
urwid.SimpleFocusListWalker([
|
||||||
|
|
|
@ -81,7 +81,6 @@ underline = re.compile(r"(?<!\\)_{2}(.+?)(?<!\\)_{2}")
|
||||||
escapes = re.compile(r"\\([*_]{2})")
|
escapes = re.compile(r"\\([*_]{2})")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def apply_directives(text):
|
def apply_directives(text):
|
||||||
# is there a better way to do this? smh....
|
# is there a better way to do this? smh....
|
||||||
text = quotes.sub(lambda m: "[quote: %s]" % m.group(1), text)
|
text = quotes.sub(lambda m: "[quote: %s]" % m.group(1), text)
|
||||||
|
|
Loading…
Reference in New Issue