Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] delete empty tspan #294

Open
JoKalliauer opened this issue Apr 5, 2022 · 0 comments
Open

[feature request] delete empty tspan #294

JoKalliauer opened this issue Apr 5, 2022 · 0 comments

Comments

@JoKalliauer
Copy link

Emtpy <tspan/> without sodipodi:role="line" should be removed. (However SVGO supports this feature.)

Input = Output

<?xml version="1.0" encoding="UTF-8"?>
<svg width="447.2pt" height="282.75pt" viewBox="0 0 447.2 282.75" xmlns="http://www.w3.org/2000/svg">
 <text x="264.96" y="201.83" stroke-width="1.8"><tspan x="264.96" y="201.83"/><tspan x="264.96" y="216.12"/><tspan x="264.96" y="230.4"/><tspan x="264.96" y="244.69"/><tspan x="264.96" y="258.97"/><tspan x="264.96" y="273.25"/><tspan x="264.96" y="287.54"/><tspan x="264.96" y="301.82"/><tspan x="264.96" y="316.11"/></text>
 <text x="264.09" y="136.5" stroke-width="1.81"><tspan x="264.09" y="136.5"/><tspan x="264.09" y="150.86"/></text>
 <text x="264.09" y="136.5" stroke-width="1.81"><tspan x="264.09" y="136.5"/><tspan x="264.09" y="150.86"/><tspan x="264.09" y="165.23"/><tspan x="264.09" y="179.6"/><tspan x="264.09" y="193.97"/></text>
 <text transform="scale(.75)"/>
</svg>

Output by SVGO (desired)

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 447.2 282.75"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant