Hacker News new | ask | show | jobs
by sambeau 4948 days ago
Here's the problem I think "-3.05176e-005":

  <path d="M 185,-3.05176e-005L 207,-3.05176e-005C 209.761,-3.05176e-005 212,2.23853 212,4.99997L 212,27C 212,29.7614 209.761,32 207,32L 185,32C 182.239,32 180,29.7614 180,27L 180,4.99997C 180,2.23853 182.239,-3.05176e-005 185,-3.05176e-005 Z " fill-rule="nonzero" fill-opacity="0" stroke="#000000" stroke-opacity="1" stroke-width="1" />

Now this could well be an error in my SVG exporter (these files are converted from XAML files). However these files do render OK and they have been fed through the SVG validator and passed.

According to the spec (See DataTypeNumber) it's perfectly OK to have an 'e' in a number.

I've added an issue: https://github.com/svg/svgo/issues/63

1 comments

thank you, I'll fix it asap.
Thanks for the fix.