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

remove selfclosing <switch/> #239

@JoKalliauer

Description

@JoKalliauer

Same source as in linebender/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"/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions