From 48118813e57641aaf21540ed1a7fc05bb3eb3884 Mon Sep 17 00:00:00 2001 From: gtema Date: Fri, 25 Nov 2022 07:57:58 +0000 Subject: [PATCH] Enable espacing of multiple matches in a row Reviewed-by: Goncharov, Artem Co-authored-by: gtema Co-committed-by: gtema --- otc_doc_convertor/convertor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otc_doc_convertor/convertor.py b/otc_doc_convertor/convertor.py index c16ca1c79..c1de1e440 100644 --- a/otc_doc_convertor/convertor.py +++ b/otc_doc_convertor/convertor.py @@ -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(