summaryrefslogtreecommitdiff
path: root/pygments/formatters
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2021-02-14 14:42:49 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2021-02-14 14:42:49 +0100
commit5f3db3a36610366e12ba14cd688d3d259917f33c (patch)
tree0f7321d8a492429df8a05581d3b00fbe8d7bba96 /pygments/formatters
parent41f25b1e6aa8d17794b0156fe133733d4a515ff8 (diff)
downloadpygments-git-5f3db3a36610366e12ba14cd688d3d259917f33c.tar.gz
Fix various issues found by make check.
Diffstat (limited to 'pygments/formatters')
-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))