forked from LiveCarta/BookConverter
epub converter: small fix
This commit is contained in:
@@ -339,7 +339,7 @@ def unwrap_structural_tags(body_tag):
|
||||
|
||||
for s in body_tag.find_all("figure"):
|
||||
s.name = 'p'
|
||||
s.attrs['style'] = "text-align: center;"
|
||||
s.attrs['style'] = "text-align: center;" # to center image inside this tag
|
||||
|
||||
for s in body_tag.find_all("figcaption"):
|
||||
_add_span_to_save_ids_for_links(s)
|
||||
@@ -493,6 +493,7 @@ def _prepare_formatted(text):
|
||||
text = text.replace(">", "\x3E")
|
||||
text = text.replace('\t', "\xa0 \xa0 ") #
|
||||
text = text.replace(' ', "\xa0")
|
||||
text = text.replace('𝑓', "\xf0\x9d\x91\x93")
|
||||
return text
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user