From 7952cb5fb2b962b05d995079c33c54153b0f9a36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sat, 15 Nov 2008 10:14:04 +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: r11301 --- 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 42ec8e468..9b5c8c871 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;')