Fix Bug #1268118: epub converted produces invalid .rtf file

This commit is contained in:
John Schember 2014-02-23 16:04:42 -05:00
parent ac35a5bddc
commit c71690d510

View File

@ -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