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