close
Skip to content

converts comma to space in stroke-dasharray #1402

Description

@JoKalliauer

Describe the bug
librsvg 2.40 (used on Wikipedia) does not support spaces in "stroke-dasharray"

To Reproduce

npm i svgo
wget https://upload.wikimedia.org/wikipedia/commons/8/8a/EKG-Reto_001_BugSolved.svg
svgo -i EKG-Reto_001_BugSolved.svg -o output.svg

Compare input and output with:
https://commons.wikimedia.org/wiki/Commons:Commons_SVG_Checker?withJS=MediaWiki:CommonsSvgChecker.js

Expected behavior
If a file uses commas in 'stroke-dasharray' there should be an option to not convert them to spaces, otherwise svgo breaks the rendering of files.
scour allways keeps the way it was (as svgo 1.x)
svgcleaner has an option for --list-separator comma

Screenshots
input:
input

output:
output

Desktop (please complete the following information):

  • SVGO Version 2.2.0
  • npm --version 7.6.0
  • OS: Fedora 32

Additional context
Example File:
EKG-Reto_001_BugSolved.svg.txt
source: https://commons.wikimedia.org/wiki/File:EKG-Reto_001_BugSolved.svg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions