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(