* src/docgen/SvgDrawDoc.py.py: Fix XML error in draw_text.

svn: r8230
This commit is contained in:
Brian Matherly 2007-02-24 22:34:22 +00:00
parent 5aa3a0f4b0
commit a8ad1dcdcf
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2007-02-24 Brian Matherly <brian@gramps-project.org>
* src/docgen/SvgDrawDoc.py.py: Fix XML error in draw_text.
2007-02-24 Brian Matherly <brian@gramps-project.org>
* src/BaseDoc.py:
* src/ReportBase/_CommandLineReport.py:

View File

@ -239,9 +239,9 @@ class SvgDrawDoc(BaseDoc.BaseDoc):
self.f.write('y="%4.2fcm" ' % (y+fs))
self.f.write('style="fill:#%02x%02x%02x;'% font.get_color())
if font.get_bold():
self.f.write('font-weight:"bold";')
self.f.write('font-weight:bold;')
if font.get_italic():
self.f.write('font-style:"italic";')
self.f.write('font-style:italic;')
self.f.write('font-size:%d; ' % font_size)
if font.get_type_face() == BaseDoc.FONT_SANS_SERIF:
self.f.write('font-family:sans-serif;')