2808: fonts with xml codes don't print correctly

svn: r12525
This commit is contained in:
Benny Malengier 2009-05-14 13:51:36 +00:00
parent 066d39a739
commit 1031506baa

View File

@ -1305,7 +1305,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):