RazrFalcon / svgcleaner

svgcleaner could help you to clean up your SVG files from the unnecessary data.
GNU General Public License v2.0
1.63k stars 94 forks source link

[Bug] --multipass infintive loop to increase file-size (& --> &) #175

Open JoKalliauer opened 6 years ago

JoKalliauer commented 6 years ago

Prozessing File:BasePairing.svg breaks the file and --multipass makes an infinite loop to increase file-size.

$ svgcleaner input.svg.txt output.svg.txt --allow-bigger-file --indent 1 --multipass

Input

input.svg.txt

<svg viewBox="0,0,217.6,196.8" xmlns="http://www.w3.org/2000/svg">
 <text font-family="'Liberation Sans', Arial" font-size="53" x="7" y="90"><tspan>T</tspan>&amp;</text>
</svg>

input

Output (running once)

output.svg.txt

<svg viewBox="0 0 217.6 196.8" xmlns="http://www.w3.org/2000/svg">
 <text font-family="'Liberation Sans', Arial" font-size="53" x="7" y="90"><tspan>T</tspan>&amp;amp;</text>
</svg>

output

RazrFalcon commented 6 years ago

An interesting one =)