From: miklosh Date: Sun, 22 Jul 2007 12:28:23 +0000 (+0000) Subject: Added xml:space=preserve attribute on nodes and sodipodi:role=line attribute... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d0b0b05662fc5cb6d734420166562b4d84dcbc75;p=inkscape.git Added xml:space=preserve attribute on nodes and sodipodi:role=line attribute on nodes to ease text editing --- 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");