From 899a3e89ac11be6ade510868e917aa5426d275d8 Mon Sep 17 00:00:00 2001 From: shirshasa Date: Tue, 20 Jul 2021 17:30:12 +0300 Subject: [PATCH] epub converter: fix

---
 src/html_epub_preprocessor.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/html_epub_preprocessor.py b/src/html_epub_preprocessor.py
index 8ac82da..d061df7 100644
--- a/src/html_epub_preprocessor.py
+++ b/src/html_epub_preprocessor.py
@@ -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