epub converter: add font styles, fix white-space

This commit is contained in:
shirshasa
2021-07-16 16:52:41 +03:00
parent 7907f87594
commit 978b9b0b66
3 changed files with 5 additions and 3 deletions

View File

@@ -461,7 +461,7 @@ def preprocess_pre_tags(chapter_tag):
new_tag.append(BeautifulSoup(features='lxml').new_tag('br'))
new_tag.attrs['style'] = "font-family: courier new,courier,monospace; " \
"font-size: 14px; white-space: pre-wrap;"
"font-size: 14px; white-space: nowrap;"
pre.insert_before(new_tag)
pre.extract()
table = wrap_span_with_table(chapter_tag, new_tag)