diff --git a/otc_doc_convertor/convertor.py b/otc_doc_convertor/convertor.py index 3d333955..8acbbe24 100644 --- a/otc_doc_convertor/convertor.py +++ b/otc_doc_convertor/convertor.py @@ -321,7 +321,8 @@ class OTCDocConvertor: if p.string: curr = p.string part = re.search(to_rawize, curr) - if len(part.groups()) > 0: + # We should not escape inside of bold - this is wrong + if len(part.groups()) > 0 and p.parent.name != "b": logging.debug( "Found element to rawize: %s", part.group(1) )