Skip to content
Snippets Groups Projects
Commit 68ad5320 authored by Sergey Sharybin's avatar Sergey Sharybin
Browse files

SVG format fixes:

- Fixed silly error caused by copy-pasteing code from class
  (accessing to self from simple function)
- Fix for illustrator path format -- it doesn't place spaces before
  "minus" sign of next number. Maybe it's time to go out from stypid
  string replacement-splitting to slower but smarter token parser?
parent 9c518302
No related branches found
No related tags found
No related merge requests found
......@@ -323,7 +323,7 @@ def SVGParseStyles(node, context):
return styles
if styles['useFill'] is None:
fill = self._node.getAttribute('fill')
fill = node.getAttribute('fill')
if fill:
fill = fill.lower()
if fill == 'none':
......@@ -354,7 +354,7 @@ class SVGPathData:
"""
# Convert to easy-to-parse format
d = d.replace(',', ' ')
d = d.replace(',', ' ').replace('-', ' -')
d = re.sub('([A-z])', ' \\1 ', d)
self._data = d.split()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment