From: miklosh Date: Tue, 24 Jul 2007 17:12:04 +0000 (+0000) Subject: Set the xml:space attribute on once rather than on every X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a4d12a5147f3d1d6b568a326e39ef5dca384248d;p=inkscape.git Set the xml:space attribute on once rather than on every --- diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp index 7ca8eb0fe..e7655e3db 100644 --- a/src/extension/internal/pdfinput/svg-builder.cpp +++ b/src/extension/internal/pdfinput/svg-builder.cpp @@ -74,6 +74,7 @@ SvgBuilder::SvgBuilder(SPDocument *document, XRef *xref) { _xref = xref; _xml_doc = sp_document_repr_doc(_doc); _container = _root = _doc->rroot; + _root->setAttribute("xml:space", "preserve"); SvgBuilder(); } @@ -891,7 +892,6 @@ void SvgBuilder::_flushText() { } Inkscape::XML::Node *text_node = _xml_doc->createElement("svg:text"); - text_node->setAttribute("xml:space", "preserve"); // Set current text position sp_repr_set_svg_double(text_node, "x", first_glyph.transformed_position[0]); sp_repr_set_svg_double(text_node, "y", first_glyph.transformed_position[1]);