Skip to content

Commit

Permalink
Merge pull request #52 from trvrm/master
Browse files Browse the repository at this point in the history
Renderer.render was failing in some cases (issue #42)
  • Loading branch information
regebro committed Oct 14, 2017
2 parents 8387446 + 4932477 commit 3343d65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/z3c/rml/svg2rlg.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def parseDashArray(array):
if array == 'none':
return None

return map(parseLength, re.split('[ ,]+', array))
return list(map(parseLength, re.split('[ ,]+', array)))

def parseOpacity(value):
try:
Expand Down Expand Up @@ -963,7 +963,7 @@ def render(self, node, parent = None):
if len(points) == 0:
return

points = map(parseLength, re.split('[ ,]+', points))
points = list(map(parseLength, re.split('[ ,]+', points)))

# Need to use two shapes, because standard RLG polylines
# do not support filling...
Expand All @@ -985,7 +985,7 @@ def render(self, node, parent = None):
if len(points) == 0:
return

points = map(parseLength, re.split('[ ,]+', points))
points = list(map(parseLength, re.split('[ ,]+', points)))

shape = Polygon(points)
self.addShape(parent, node, shape)
Expand Down Expand Up @@ -1018,7 +1018,7 @@ def parsePos(node, subnode, name, default = '0'):
else:
values = default

return map(parseLength, values.split())
return list(map(parseLength, values.split()))

def getPos(values, i, default = None):
if i >= len(values):
Expand Down

0 comments on commit 3343d65

Please sign in to comment.