Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

remove selfclosing <switch/> #239

Open
JoKalliauer opened this issue Jun 14, 2021 · 0 comments
Open

remove selfclosing <switch/> #239

JoKalliauer opened this issue Jun 14, 2021 · 0 comments

Comments

@JoKalliauer
Copy link
Contributor

Same source as in RazrFalcon/resvg#363 (comment)

input=output

<?xml version="1.0" encoding="UTF-8"?>
<svg enable-background="new -491.5 -522.36 1638.55 1852.41" height="1852.41" viewBox="-491.5,-522.36,1638.55,1852.41" width="1638.55" xmlns="http://www.w3.org/2000/svg">
 <switch/>
</svg>

desired output

<?xml version="1.0" encoding="UTF-8"?>
<svg enable-background="new -491.5 -522.36 1638.55 1852.41" height="1852.41" viewBox="-491.5,-522.36,1638.55,1852.41" width="1638.55" xmlns="http://www.w3.org/2000/svg"/>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant