Page MenuHome

SVGParseFloat() improved parsing of scientific notation
ClosedPublic

Authored by Sergey Sharybin (sergey) on Feb 1 2016, 11:06 PM.

Details

Summary

io_curve_svg.import_svg.SVGParseFloat() may parse a float containing scientific notation without an exponent sign. For example, 1e3 is a legal float value according to the <number> syntax:
https://www.w3.org/TR/SVG11/types.html#DataTypeNumber

Example SVG file:
https://upload.wikimedia.org/wikipedia/commons/2/2f/Google_2015_logo.svg

Diff Detail

Event Timeline

Zac Mullett (zmullett) retitled this revision from to SVGParseFloat() improved parsing of scientific notation.
Zac Mullett (zmullett) updated this object.
Zac Mullett (zmullett) set the repository for this revision to rBA Blender Add-ons.
Sergey Sharybin (sergey) edited edge metadata.

Pushed the patch to the git now, thanks!

This revision is now accepted and ready to land.Feb 10 2016, 12:13 PM

The system didn't close it, so manually doing it..

This revision now requires review to proceed.Feb 10 2016, 12:13 PM
This revision was automatically updated to reflect the committed changes.