epub converter: check pre-wrap

This commit is contained in:
shirshasa
2021-07-06 10:16:43 +03:00
parent 709ffb5e2d
commit f0d75ec85c

View File

@@ -404,6 +404,7 @@ def preprocess_pre_tags(chapter_tag):
if isinstance(child, NavigableString):
child.text = escape(pre.text)
pre.name = 'span'
pre.attrs['style'] = "white-space: pre-wrap;"
wrap_span_with_table(chapter_tag, pre)