summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-03-16 01:01:39 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-03-16 01:01:39 +0000
commit62d93fc6022d25525613a2ee18f50ff00a307296 (patch)
tree61add966cefdeb305dec309de260346b3070a1ed /src/style.cpp
parentswitch repr-css to using libcroco, same as SPStyle uses, instead of its own h... (diff)
downloadinkscape-62d93fc6022d25525613a2ee18f50ff00a307296.tar.gz
inkscape-62d93fc6022d25525613a2ee18f50ff00a307296.zip
also quote fonnames starting from a non-letter
(bzr r2664)
Diffstat (limited to '')
-rw-r--r--src/style.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/style.cpp b/src/style.cpp
index 29f56608c..722f1677d 100644
--- a/src/style.cpp
+++ b/src/style.cpp
@@ -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