* src/docgen/SvgDrawDoc.py.py: Fix XML error in draw_text.
svn: r8227
This commit is contained in:
parent
2ace2ee5b4
commit
a1efb824cb
@ -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.
|
||||
|
@ -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;')
|
||||
|
Loading…
Reference in New Issue
Block a user