~ubuntu-branches/debian/sid/calibre/sid

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/rtf/rtfml.py

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2014-05-14 18:17:50 UTC
  • mfrom: (1.5.10)
  • Revision ID: package-import@ubuntu.com-20140514181750-xyrxqa47dbw0qfhu
Tags: 1.36.0+dfsg-1
* New upstream release:
  - Fixes editing of metadata (Closes: #741638)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
    # Escape { and } in the text.
72
72
    text = text.replace('{', r'\'7b')
73
73
    text = text.replace('}', r'\'7d')
 
74
    text = text.replace('\\', r'\'5c')
74
75
 
75
76
    if not isinstance(text, unicode):
76
77
        return text