diff options
author | Matthäus G. Chajdas <dev@anteru.net> | 2021-02-14 14:42:49 +0100 |
---|---|---|
committer | Matthäus G. Chajdas <dev@anteru.net> | 2021-02-14 14:42:49 +0100 |
commit | 5f3db3a36610366e12ba14cd688d3d259917f33c (patch) | |
tree | 0f7321d8a492429df8a05581d3b00fbe8d7bba96 /pygments/formatters/svg.py | |
parent | 41f25b1e6aa8d17794b0156fe133733d4a515ff8 (diff) | |
download | pygments-git-5f3db3a36610366e12ba14cd688d3d259917f33c.tar.gz |
Fix various issues found by make check.
Diffstat (limited to 'pygments/formatters/svg.py')
-rw-r--r-- | pygments/formatters/svg.py | 6 |
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)) |