fixing the problem wiht empty space in the bold string at the end

This commit is contained in:
Hasko, Vladimir 2022-12-21 00:52:37 +00:00
parent 4194b50d78
commit 76a83d092f

View File

@ -201,6 +201,8 @@ class OTCDocConvertor:
for strong in soup.body.find_all("strong"):
if strong.a:
strong.unwrap()
if strong.string.endswith(' '):
strong.string=strong.string[:-1]
# table anchors - some tables are referred. Some are having anchor in
# front, some not. In order to cope with that we analyze every table