summaryrefslogtreecommitdiff
path: root/pygments/formatters/svg.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/formatters/svg.py')
-rw-r--r--pygments/formatters/svg.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pygments/formatters/svg.py b/pygments/formatters/svg.py
index 6950cd96..547a7bbc 100644
--- a/pygments/formatters/svg.py
+++ b/pygments/formatters/svg.py
@@ -140,7 +140,8 @@ class SvgFormatter(Formatter):
if self.linenos:
if counter % counter_step == 0:
- outfile.write('<text x="%s" y="%s" %s text-anchor="end">%s</text>' % (x+self.linenowidth,y,counter_style,counter))
+ outfile.write('<text x="%s" y="%s" %s text-anchor="end">%s</text>' %
+ (x+self.linenowidth,y,counter_style,counter))
line_x += self.linenowidth + self.ystep
counter += 1
@@ -158,7 +159,8 @@ class SvgFormatter(Formatter):
y += self.ystep
outfile.write('</text>\n')
if self.linenos and counter % counter_step == 0:
- outfile.write('<text x="%s" y="%s" text-anchor="end" %s>%s</text>' % (x+self.linenowidth,y,counter_style,counter))
+ outfile.write('<text x="%s" y="%s" text-anchor="end" %s>%s</text>' %
+ (x+self.linenowidth,y,counter_style,counter))
counter += 1
outfile.write('<text x="%s" y="%s" ' 'xml:space="preserve">' % (line_x,y))