diff --git a/libs/flake/text/KoSvgTextChunkShape.cpp b/libs/flake/text/KoSvgTextChunkShape.cpp --- a/libs/flake/text/KoSvgTextChunkShape.cpp +++ b/libs/flake/text/KoSvgTextChunkShape.cpp @@ -418,6 +418,8 @@ if (!dyPos.isEmpty()) { context.shapeWriter().startElement("br"); context.shapeWriter().endElement(); + //we can't store the following attributes in the br, so store them in a span + context.shapeWriter().startElement("span"); } KoSvgTextProperties parentProperties = @@ -441,6 +443,11 @@ // After adding all the styling to the

element, add the text context.shapeWriter().addTextNode(d->text); + if (!dyPos.isEmpty()) { + //end span that was put after br + context.shapeWriter().endElement(); + } + } else { diff --git a/plugins/tools/svgtexttool/SvgTextEditor.cpp b/plugins/tools/svgtexttool/SvgTextEditor.cpp --- a/plugins/tools/svgtexttool/SvgTextEditor.cpp +++ b/plugins/tools/svgtexttool/SvgTextEditor.cpp @@ -218,9 +218,9 @@ if (!converter.convertFromHtml(m_textEditorWidget.richTextEdit->document()->toHtml(), &svg, &styles)) { qWarning() << "Eeeek"; } - if (!converter.convertToSvg(&svg, &styles)) { - qDebug() << "Eeeek 2"; - } + //if (!converter.convertToSvg(&svg, &styles)) { + // qDebug() << "Eeeek 2"; + //} m_textEditorWidget.svgTextEdit->setPlainText(svg); m_textEditorWidget.svgStylesEdit->setPlainText(styles); }