Created
April 29, 2013 11:24
-
-
Save mbr/5481042 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="744.09448" height="1052.3622"> | |
<text x="102.67084" y="521.4234" id="text3079" xml:space="preserve" | |
style="font-size:84.10165405px;font-style:normal;font-variant:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;opacity:0.5;fill:#000000;fill-opacity:1;stroke:none;font-family:Times New Roman;-inkscape-font-specification:Times New Roman"><tspan | |
x="102.67084" y="521.4234" >This <tspan style="font-style:italic">breaks</tspan>.</tspan></text> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will break with cairosvg 0.5 with the following error:
The issue seems to be with the nested
tspan
elements. Removing the inner causes it to work correctly.The image is valid SVG: http://validator.w3.org/check?uri=https%3A%2F%2Fgist.github.com%2Fmbr%2F5481042%2Fraw%2F06f0c1d802081f47a60dcddf4b78c90d77524096%2Fbroken.svg&charset=%28detect+automatically%29&doctype=Inline&group=0