summaryrefslogtreecommitdiffstats
path: root/src/xml/repr-css.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml/repr-css.cpp')
-rw-r--r--src/xml/repr-css.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xml/repr-css.cpp b/src/xml/repr-css.cpp
index d3c39e5a2..ec5848366 100644
--- a/src/xml/repr-css.cpp
+++ b/src/xml/repr-css.cpp
@@ -155,7 +155,9 @@ sp_repr_css_write_string(SPCSSAttr *css)
buffer.append(g_quark_to_string(iter->key));
buffer.push_back(':');
- if (!strcmp(g_quark_to_string(iter->key), "font-family")) { // we only quote font-family, as SPStyle does
+ if (!strcmp(g_quark_to_string(iter->key), "font-family")
+ || !strcmp(g_quark_to_string(iter->key), "-inkscape-font-specification")) {
+ // we only quote font-family/font-specification, as SPStyle does
gchar *t = g_strdup (iter->value);
g_free (t);
gchar *val_quoted = css2_escape_quote (iter->value);