dealing with empty space in strong.span element

This commit is contained in:
vladimirhasko 2023-02-16 16:44:33 +00:00
parent 37582ed59f
commit 701d756f35

View File

@ -354,6 +354,11 @@ class OTCDocConvertor:
curr = el.string
el.string.replace_with(curr[:-1])
el.insert_after(" ")
elif (
el.string
and el.span and el.span.string == " "
):
el.span.decompose()
# A very dirty hack - if we have "*" inside of em (italic) regular
# escaping is not working anymore (pandoc is not producing proper