After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 636661 - xml:space="preserve" is not processed correctly
xml:space="preserve" is not processed correctly
Status: RESOLVED DUPLICATE of bug 636660
Product: librsvg
Classification: Core
Component: general
2.32.x
Other Linux
: Normal normal
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2010-12-07 02:03 UTC by Patrick McCarty
Modified: 2010-12-07 03:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix the issue (1.14 KB, patch)
2010-12-07 02:03 UTC, Patrick McCarty
none Details | Review

Description Patrick McCarty 2010-12-07 02:03:19 UTC
Created attachment 175979 [details] [review]
Patch to fix the issue

For <text> elements (and its child elements, such as <tspan>), the SVG 1.1 and SVG 1.2 Tiny recommendations specify that tab and newline characters are to be converted into spaces, but only when `xml:space' has the value `preserve'.

The solution, as I see it is to convert these characters in the "_rsvg_text_chomp" function in rsvg-text.c.

See the attached patch.

Thanks.
Comment 1 Fabio Durán Verdugo 2010-12-07 03:40:30 UTC

*** This bug has been marked as a duplicate of bug 636660 ***