https://bugs.kde.org/show_bug.cgi?id=395769

--- Comment #8 from David REVOY <i...@davidrevoy.com> ---
Here are results my investigations:

Saving multiline SVG text
=========================
It is working. (screenshot:
https://www.peppercarrot.com/extras/temp/2018-09-23_screenshot_150851_net.jpg)
The markup is like that:
<tspan x="54.390625pt">This line one</tspan>
<tspan x="54.390625pt" dy="21pt">This is line two</tspan>
If saved as *.kra file and then *.kra unziped; the SVG data layer contains same
markup.

Loading multiline SVG text (editing)
====================================
Broken. (screenshot:
https://www.peppercarrot.com/extras/temp/2018-09-23_screenshot_151238_net.jpg)
The markup is like that:
<tspan x="100.1171875pt">This line oneThis is line two</tspan>
The two <tspan> markup were merged. Probably a rule a bit too aggressive of
merging similar markup (a sort of SVG autoclean?).

I tried to look at libs/flake/text/KoSvgTextChunkShape.cpp to find how this
cleanup was performed into KoSvgTextChunkShape::loadSvgTextNode (around line
694) and manually modify hasNextSibling and hasPreviousSibling rules with
tspan.

I unfortunately failed at tweaking something that could solve the bug...
Help?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to