Code

also quote fonnames starting from a non-letter
authorbuliabyak <buliabyak@users.sourceforge.net>
Fri, 16 Mar 2007 01:01:39 +0000 (01:01 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Fri, 16 Mar 2007 01:01:39 +0000 (01:01 +0000)
src/style.cpp

index 29f56608c55dc7ef2c0fca48ab4a297faf8fb66c..722f1677d6cdbff319a81aafe9b076970dfe0aea 100644 (file)
@@ -4074,6 +4074,9 @@ css2_escape_quote(gchar const *val) {
             t.push_back(*i);
             quote = true;
         } 
+        if (i == val && !g_ascii_isalpha(*i)) {
+            quote = true;
+        }
     }
 
     if (quote) { // we use the ' quotes so the result can go to the XML attribute