forked from docs/doc-exports
Enable espacing of multiple matches in a row
Reviewed-by: Goncharov, Artem <artem.goncharov@t-systems.com> Co-authored-by: gtema <artem.goncharov@gmail.com> Co-committed-by: gtema <artem.goncharov@gmail.com>
This commit is contained in:
@ -387,7 +387,7 @@ class OTCDocConvertor:
|
||||
# escapings above
|
||||
# 2. we are not escaping asterisks at the end of the paragraphs (pandoc
|
||||
# deals correctly with that)
|
||||
re_escape = re.compile(r"([-:/'\"<\([{])(\*+)(.+)")
|
||||
re_escape = re.compile(r"([-:/'\"<\([{])(\*+)(.)")
|
||||
for p in soup.body.find_all(string=re_escape):
|
||||
if p.string and p.parent.name == "p":
|
||||
p.string.replace_with(
|
||||
|
||||
Reference in New Issue
Block a user