Commit 537b309e authored by Ricardo Lafuente's avatar Ricardo Lafuente

Shorten line length

parent 993671af
......@@ -105,10 +105,12 @@ class vectorpixel:
def _mkelements(self):
for l in self._yieldlocations():
yield "<rect x='%s' y='%s' width='%s' height='%s' rx='%s' fill='%s'/>" % (
self.grid * l[0] + self.line, self.grid * l[1] + self.line, self.width, self.height, self.rounded, self.fill)
self.grid * l[0] + self.line, self.grid * l[1] + self.line,
self.width, self.height, self.rounded, self.fill)
def _format(self):
output = '<svg xmlns="http://www.w3.org/2000/svg" width="%s" height="%s">\n' % (self.i.size[0] * self.grid, self.i.size[1] * self.grid)
output = '<svg xmlns="http://www.w3.org/2000/svg" width="%s" height="%s">\n' % (
self.i.size[0] * self.grid, self.i.size[1] * self.grid)
for e in self._mkelements():
output += e
output += '\n'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment