forked from LiveCarta/BookConverter
epub converter: fix <pre>
This commit is contained in:
@@ -432,9 +432,9 @@ def preprocess_block_tags(chapter_tag):
|
|||||||
|
|
||||||
|
|
||||||
def _prepare_formatted(text):
|
def _prepare_formatted(text):
|
||||||
text = text.replace("<", "\x3C;")
|
text = text.replace("<", "\x3C")
|
||||||
text = text.replace(">", "\x3E;")
|
text = text.replace(">", "\x3E")
|
||||||
text = text.replace('\t', "\xa0 \xa0 \xa0 ")
|
text = text.replace('\t', "\xa0 \xa0 ") #
|
||||||
text = text.replace(' ', "\xa0")
|
text = text.replace(' ', "\xa0")
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user