summaryrefslogtreecommitdiff
path: root/pygments/formatters/html.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2013-01-09 15:45:54 +0100
committerGeorg Brandl <georg@python.org>2013-01-09 15:45:54 +0100
commit5f95983ee21187cf789f444b2ab80dcedd45385c (patch)
tree640439f206142ab6937d8844cc903e30190ddf27 /pygments/formatters/html.py
parent3af548c47cf7b81193e8b3a4d3ac57d7528048a0 (diff)
parentc6ecb6ea2d522d79ef092ed7fd3c05327d283eec (diff)
downloadpygments-5f95983ee21187cf789f444b2ab80dcedd45385c.tar.gz
Merge pull request #87 (ctags link support for HTML formatter) from https://bitbucket.org/pepijndevos/pygments-main/overview
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r--pygments/formatters/html.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index e7ac3413..e142fd38 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -5,7 +5,7 @@
Formatter for HTML output.
- :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS.
+ :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -622,7 +622,8 @@ class HtmlFormatter(Formatter):
def _wrap_lineanchors(self, inner):
s = self.lineanchors
- i = self.linenostart - 1 # subtract 1 since we have to increment i *before* yielding
+ i = self.linenostart - 1 # subtract 1 since we have to increment i
+ # *before* yielding
for t, line in inner:
if t:
i += 1