From a4d12a5147f3d1d6b568a326e39ef5dca384248d Mon Sep 17 00:00:00 2001 From: miklosh Date: Tue, 24 Jul 2007 17:12:04 +0000 Subject: [PATCH] Set the xml:space attribute on once rather than on every --- src/extension/internal/pdfinput/svg-builder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); -- 2.30.2