* src/docgen/SvgDrawDoc.py.py: Fix XML error in draw_text.
svn: r8230
This commit is contained in:
parent
5aa3a0f4b0
commit
a8ad1dcdcf
@ -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>
|
2007-02-24 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/BaseDoc.py:
|
* src/BaseDoc.py:
|
||||||
* src/ReportBase/_CommandLineReport.py:
|
* src/ReportBase/_CommandLineReport.py:
|
||||||
|
@ -237,11 +237,11 @@ class SvgDrawDoc(BaseDoc.BaseDoc):
|
|||||||
self.f.write('<text ')
|
self.f.write('<text ')
|
||||||
self.f.write('x="%4.2fcm" ' % x)
|
self.f.write('x="%4.2fcm" ' % x)
|
||||||
self.f.write('y="%4.2fcm" ' % (y+fs))
|
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():
|
if font.get_bold():
|
||||||
self.f.write('font-weight:"bold";')
|
self.f.write('font-weight:bold;')
|
||||||
if font.get_italic():
|
if font.get_italic():
|
||||||
self.f.write('font-style:"italic";')
|
self.f.write('font-style:italic;')
|
||||||
self.f.write('font-size:%d; ' % font_size)
|
self.f.write('font-size:%d; ' % font_size)
|
||||||
if font.get_type_face() == BaseDoc.FONT_SANS_SERIF:
|
if font.get_type_face() == BaseDoc.FONT_SANS_SERIF:
|
||||||
self.f.write('font-family:sans-serif;')
|
self.f.write('font-family:sans-serif;')
|
||||||
|
Loading…
Reference in New Issue
Block a user