Invalid SVG output with text attributes

Bug #1402320 reported by Roul P.
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scour
Fix Released
Undecided
Patrick Storz

Bug Description

If you have text and the option convert CSS attributes to XML, the SVG code get invalid (as the W3C Validator says http://validator.w3.org/#validate_by_upload).: "Attribute line-height not allowed on SVG element " (the same with text-align) It seems that this are only CSS attributes and not SVG/XML attributes.

Tags: svg text
Roul P. (perhelion1)
tags: added: text xml
Roul P. (perhelion1)
tags: added: svg
removed: xml
Revision history for this message
jazzynico (jazzynico) wrote :

Confirmed when saving from Inkscape trunk rev. 13836 (Scour rev. 222). See attached test file.

Moving the line-height attribute to the style attribute fixes the issue. Note that the text-align attribute (as well as text-anchor, writing-mode, word-spacing and letter-spacing) is not converted to XML attribute.

Changed in scour:
status: New → Confirmed
Revision history for this message
jazzynico (jazzynico) wrote :
Revision history for this message
Patrick Storz (ede123) wrote :

Fixed in scour 0.35 [1]

See copy of this bug on GitHub for details
https://github.com/scour-project/scour/issues/94

[1] https://pypi.python.org/pypi/scour

Changed in scour:
status: Confirmed → Fix Released
assignee: nobody → Eduard Braun (eduard-braun2)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.