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

svn: r8227
This commit is contained in:
Brian Matherly 2007-02-24 20:42:31 +00:00
parent 6bcf451515
commit c2a7b06358
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-23 Alex Roitman <shura@gramps-project.org>
* src/Editors/_EditFamily.py (edit_child_button_clicked): Catch
open window situation.

View File

@ -237,11 +237,11 @@ class SvgDrawDoc(BaseDoc.BaseDoc):
self.f.write('<text ')
self.f.write('x="%4.2fcm" ' % x)
self.f.write('y="%4.2fcm" ' % (y+fs))
self.f.write('style="fill:#%02x%02x%02x; '% font.get_color())
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;')