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

--join-style-attributes changes Rendering #182

Open
JoKalliauer opened this issue Nov 11, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@JoKalliauer
Copy link

commented Nov 11, 2018

Prozessing 20181110022753%21Test.svg with

svgcleaner Input.svg.txt Output.svg.txt --indent 1 --join-style-attributes some

leads to a change from style="font:bold 40px sans-serif" to font="bold 40px sans-serif"


The option some should maybe not only work for five or more, but also for unknown attributes, this would might also solve problems with CSS-Properties: #162


Input

Input.svg.txt

<svg height="200" width="200" xmlns="http://www.w3.org/2000/svg">
 <text style="font:bold 40px sans-serif" x="20" y="45">F<tspan style="font:bold 30px sans-serif" y="35">7</tspan></text>
 <text style="font:bold 12px sans-serif" x="120" y="65">III</text>
</svg>

input

Output

Output.svg.txt

<svg height="200" width="200" xmlns="http://www.w3.org/2000/svg">
 <text font="bold 40px sans-serif" x="20" y="45">F<tspan font="bold 30px sans-serif" y="35">7</tspan></text>
 <text font="bold 12px sans-serif" x="120" y="65">III</text>
</svg>

output


Copyright

Lizense: CC-BY-SA 3.0

Author: https://commons.wikimedia.org/wiki/User:Mjchael

scource: https://upload.wikimedia.org/wikipedia/commons/archive/b/bd/20181110022753%21Test.svg

@RazrFalcon

This comment has been minimized.

Copy link
Owner

commented Nov 11, 2018

The second one should also work, but no one really support this, afaik.

Will see what can be done here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.