1357: Incorrect marriage event description when outputting to PDF (only ampersand, < > ?)

svn: r11751
This commit is contained in:
Jérôme Rapinat 2009-01-28 09:01:39 +00:00
parent b0e3ed517a
commit 4574406d32

View File

@ -1156,6 +1156,7 @@ class CairoDoc(BaseDoc.BaseDoc, BaseDoc.TextDoc, BaseDoc.DrawDoc):
self.end_paragraph()
def write_text(self, text, mark=None):
text = text.replace('&','&amp;')
# FIXME this is ugly, do we really need it?
text = text.replace('<super>', '<small><sup>')
text = text.replace('</super>', '</sup></small>')