forked from LiveCarta/BookConverter
epub converter: fix <pre> 3
This commit is contained in:
@@ -404,7 +404,7 @@ def preprocess_pre_tags(chapter_tag):
|
|||||||
|
|
||||||
for child in pre.children:
|
for child in pre.children:
|
||||||
if isinstance(child, NavigableString):
|
if isinstance(child, NavigableString):
|
||||||
text = escape(pre.text)
|
text = pre.text
|
||||||
text = text.replace('\t', ' ')
|
text = text.replace('\t', ' ')
|
||||||
text = text.replace(' ', ' ')
|
text = text.replace(' ', ' ')
|
||||||
elements = re.split('\r\n|\n|\r', text)
|
elements = re.split('\r\n|\n|\r', text)
|
||||||
|
|||||||
Reference in New Issue
Block a user