mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -18,6 +18,7 @@ class MarkdownIncludeCustom(MarkdownInclude):
|
||||
500,
|
||||
)
|
||||
|
||||
|
||||
class IncludeCustomPreprocessor(IncludePreprocessor):
|
||||
"""
|
||||
This is a custom implementation of the markdown_include
|
||||
@@ -56,12 +57,13 @@ class IncludeCustomPreprocessor(IncludePreprocessor):
|
||||
text[i] = text[i].rstrip('\r\n')
|
||||
text[0] = line_split[0] + text[0]
|
||||
text[-1] = text[-1] + line_split[2]
|
||||
lines = lines[:loc] + text + lines[loc+1:]
|
||||
lines = lines[:loc] + text + lines[loc + 1 :]
|
||||
break
|
||||
else:
|
||||
done = True
|
||||
|
||||
return lines
|
||||
|
||||
|
||||
def makeExtension(*args: Any, **kwargs: str) -> MarkdownIncludeCustom:
|
||||
return MarkdownIncludeCustom(kwargs)
|
||||
|
||||
Reference in New Issue
Block a user