mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 19:16:19 +01:00
Pull from driver-dev
This commit is contained in:
commit
8a76c16d55
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