forked from docs/doc-exports
Compare commits
1 Commits
main
...
empty_spac
Author | SHA1 | Date | |
---|---|---|---|
6f7b1f988c |
@ -346,7 +346,7 @@ class OTCDocConvertor:
|
|||||||
# Another hack: sometimes bold elements ends with space. This is not
|
# Another hack: sometimes bold elements ends with space. This is not
|
||||||
# valid from rst pov and we need to fix that by dropping this space and
|
# valid from rst pov and we need to fix that by dropping this space and
|
||||||
# inject a space after strong block
|
# inject a space after strong block
|
||||||
for el in soup.body.find_all("strong"):
|
for el in soup.body.find_all(["strong", "b"]):
|
||||||
if (
|
if (
|
||||||
el.string
|
el.string
|
||||||
and el.string[-1] == " "
|
and el.string[-1] == " "
|
||||||
@ -355,8 +355,8 @@ class OTCDocConvertor:
|
|||||||
el.string.replace_with(curr[:-1])
|
el.string.replace_with(curr[:-1])
|
||||||
el.insert_after(" ")
|
el.insert_after(" ")
|
||||||
elif (
|
elif (
|
||||||
el.string
|
el.span
|
||||||
and el.span and el.span.string == " "
|
and el.span.string and el.span.string == " "
|
||||||
):
|
):
|
||||||
el.span.decompose()
|
el.span.decompose()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user