From d0b0b05662fc5cb6d734420166562b4d84dcbc75 Mon Sep 17 00:00:00 2001 From: miklosh Date: Sun, 22 Jul 2007 12:28:23 +0000 Subject: [PATCH] Added xml:space=preserve attribute on nodes and sodipodi:role=line attribute on nodes to ease text editing --- src/extension/internal/pdfinput/svg-builder.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp index 02bd06792..b17a51ea8 100644 --- a/src/extension/internal/pdfinput/svg-builder.cpp +++ b/src/extension/internal/pdfinput/svg-builder.cpp @@ -787,6 +787,7 @@ 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]); @@ -843,6 +844,7 @@ void SvgBuilder::_flushText() { break; } else { tspan_node = _xml_doc->createElement("svg:tspan"); + tspan_node->setAttribute("sodipodi:role", "line"); // Set style and unref SPCSSAttr if it won't be needed anymore if ( i != _glyphs.begin() ) { sp_repr_css_change(tspan_node, glyph.style, "style"); -- 2.30.2