From f0d75ec85ce223a3b9893dba5c54d468cd8e22e0 Mon Sep 17 00:00:00 2001 From: shirshasa Date: Tue, 6 Jul 2021 10:16:43 +0300 Subject: [PATCH] epub converter: check pre-wrap --- src/html_epub_preprocessor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/html_epub_preprocessor.py b/src/html_epub_preprocessor.py index 06878de..ce262cb 100644 --- a/src/html_epub_preprocessor.py +++ b/src/html_epub_preprocessor.py @@ -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)