mirror of
https://github.com/gryf/ebook-converter.git
synced 2026-03-06 01:05:52 +01:00
Moved prepare_string_for_xml to utils.entities.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import os
|
||||
|
||||
from ebook_converter import _ent_pat
|
||||
from ebook_converter.customize.conversion import InputFormatPlugin
|
||||
from ebook_converter.customize.conversion import OptionRecommendation
|
||||
from ebook_converter.utils import entities
|
||||
@@ -198,7 +197,7 @@ class TXTInput(InputFormatPlugin):
|
||||
txt = txt.decode(ienc, 'replace')
|
||||
|
||||
# Replace entities
|
||||
txt = _ent_pat.sub(entities.xml_entity_to_unicode, txt)
|
||||
txt = entities.ENT_PAT.sub(entities.xml_entity_to_unicode, txt)
|
||||
|
||||
# Normalize line endings
|
||||
txt = normalize_line_endings(txt)
|
||||
|
||||
Reference in New Issue
Block a user