From d57f55389d8477902ad4a7f2854ae6b78648a7c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 15 Nov 2008 10:16:31 +0000 Subject: [PATCH] 2499: Using quotes for font-weight (bold) and font-style (italic) on Style Editor will generate a not well formed SVG file svn: r11302 --- src/docgen/SvgDrawDoc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/docgen/SvgDrawDoc.py b/src/docgen/SvgDrawDoc.py index 8277f0565..86d7b916a 100644 --- a/src/docgen/SvgDrawDoc.py +++ b/src/docgen/SvgDrawDoc.py @@ -108,9 +108,9 @@ class SvgDrawDoc(BaseDoc.BaseDoc,BaseDoc.DrawDoc): self.t.write('transform="rotate(%d %4.2f %4.2f)" ' % (angle,centerx,centery)) self.t.write('style="fill:#%02x%02x%02x; '% font.get_color()) if font.get_bold(): - self.t.write('font-weight:"bold";') + self.t.write('font-weight:bold;') if font.get_italic(): - self.t.write('font-style:"italic";') + self.t.write('font-style:italic;') self.t.write('font-size:%d; ' % size) if font.get_type_face() == BaseDoc.FONT_SANS_SERIF: self.t.write('font-family:sans-serif;') @@ -202,9 +202,9 @@ class SvgDrawDoc(BaseDoc.BaseDoc,BaseDoc.DrawDoc): self.t.write('y="%4.2fcm" ' % ypos) self.t.write('style="fill:#%02x%02x%02x; '% font.get_color()) if font.get_bold(): - self.t.write(' font-weight:"bold";') + self.t.write(' font-weight:bold;') if font.get_italic(): - self.t.write(' font-style:"italic";') + self.t.write(' font-style:italic;') self.t.write(' font-size:%d;' % font_size) if font.get_type_face() == BaseDoc.FONT_SANS_SERIF: self.t.write(' font-family:sans-serif;')