2808: fonts with xml codes don't print correctly

svn: r12524
This commit is contained in:
Benny Malengier 2009-05-14 13:50:40 +00:00
parent 505ec7440c
commit 5386daf355

View File

@ -1302,7 +1302,8 @@ class CairoDoc(BaseDoc.BaseDoc, BaseDoc.TextDoc, BaseDoc.DrawDoc):
#size is in thousandths of a point in pango
value = str(1000 * value)
return ('<span %s="%s">' % (self.STYLETAG_TO_PROPERTY[type], value),
return ('<span %s="%s">' % (self.STYLETAG_TO_PROPERTY[type],
self.ESCAPE_FUNC()(value)),
'</span>')
def write_note(self, text, format, style_name):