forked from LiveCarta/BookConverter
epub converter: check pre-wrap
This commit is contained in:
@@ -404,6 +404,7 @@ def preprocess_pre_tags(chapter_tag):
|
|||||||
if isinstance(child, NavigableString):
|
if isinstance(child, NavigableString):
|
||||||
child.text = escape(pre.text)
|
child.text = escape(pre.text)
|
||||||
pre.name = 'span'
|
pre.name = 'span'
|
||||||
|
pre.attrs['style'] = "white-space: pre-wrap;"
|
||||||
wrap_span_with_table(chapter_tag, pre)
|
wrap_span_with_table(chapter_tag, pre)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user