mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 23:53:27 +02:00
Text output cleanup.
This commit is contained in:
parent
1e072040ba
commit
91f6d6c46b
1 changed files with 3 additions and 2 deletions
|
|
@ -118,8 +118,9 @@ def cleanup_text(self, text):
|
|||
return text
|
||||
|
||||
def unix_newlines(self, text):
|
||||
text = text.replace('\r\n', '\n')
|
||||
text = text.replace('\r', '\n')
|
||||
text = text.replace('\r\n', ' ')
|
||||
text = text.replace('\n', ' ')
|
||||
text = text.replace('\r', ' ')
|
||||
|
||||
return text
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue