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:
2022-11-25 07:57:58 +00:00
committed by zuul
parent 231618c804
commit 48118813e5

View File

@ -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(