mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-27 01:35:28 +02:00
Fix Bug #1268118: epub converted produces invalid .rtf file
This commit is contained in:
parent
ac35a5bddc
commit
c71690d510
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Reference in a new issue