mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix Bug #1268118: epub converted produces invalid .rtf file
This commit is contained in:
parent
ac35a5bddc
commit
c71690d510
@ -71,6 +71,7 @@ def txt2rtf(text):
|
||||
# Escape { and } in the text.
|
||||
text = text.replace('{', r'\'7b')
|
||||
text = text.replace('}', r'\'7d')
|
||||
text = text.replace('\\', r'\'5c')
|
||||
|
||||
if not isinstance(text, unicode):
|
||||
return text
|
||||
|
Loading…
x
Reference in New Issue
Block a user