diff options
author | Georg Brandl <georg@python.org> | 2013-01-09 15:45:54 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-01-09 15:45:54 +0100 |
commit | 5f95983ee21187cf789f444b2ab80dcedd45385c (patch) | |
tree | 640439f206142ab6937d8844cc903e30190ddf27 /pygments/formatters/html.py | |
parent | 3af548c47cf7b81193e8b3a4d3ac57d7528048a0 (diff) | |
parent | c6ecb6ea2d522d79ef092ed7fd3c05327d283eec (diff) | |
download | pygments-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.py | 5 |
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 |