Review Request: Saving and reloading a file with an Artistic Text object results in spaces added to the text content each time
Thorsten Zachmann
t.zachmann at zagge.de
Wed Feb 29 04:44:12 GMT 2012
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/104114/#review11003
-----------------------------------------------------------
Ship it!
Seems I broke that when I made spacehandling mandetory. Thanks for fixing.
- Thorsten Zachmann
On Feb. 29, 2012, 3:38 a.m., Friedrich W. H. Kossebau wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/104114/
> -----------------------------------------------------------
>
> (Updated Feb. 29, 2012, 3:38 a.m.)
>
>
> Review request for Calligra and Jan Hambrecht.
>
>
> Description
> -------
>
> The flag "indentInside" was not set to "false" on writing <text> and <tspan> tokens in ArtisticTextShape::saveSvg(...).
> That way the created SVG file could contain indenting spaces inside the <text> and <tspan> tokens, which on reading are interpreted to be spaces belonging to the text.
>
> Attached patch fixes that by setting the flag to true (should be switched to be an enum in some future version, no?).
>
>
> Diffs
> -----
>
> plugins/artistictextshape/ArtisticTextShape.cpp 301b6c7
>
> Diff: http://git.reviewboard.kde.org/r/104114/diff/
>
>
> Testing
> -------
>
> Created some artistic text shapes with properties of subtext changed, e.g. color, to get more tspans in the stored SVG, then loaded and saved the file a few times.
> No longer any spaces are added to the text.
>
>
> Thanks,
>
> Friedrich W. H. Kossebau
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20120229/07fd8abc/attachment.htm>
More information about the calligra-devel
mailing list