diff options
author | Igor Kalnitsky <igor@kalnitsky.org> | 2012-02-07 21:29:58 +0200 |
---|---|---|
committer | Igor Kalnitsky <igor@kalnitsky.org> | 2012-02-07 21:29:58 +0200 |
commit | 3d1b3982a4b4fb5dc8ad5eba70b2416fb980b8ec (patch) | |
tree | f086edf649eceda1602c73e3559b786585287407 /pygments/formatters/html.py | |
parent | 62213ae784abde261ec76d59d3bbfc2f0967dc28 (diff) | |
parent | b42b337d32c87768594934d01e0f40b4c83a435f (diff) | |
download | pygments-3d1b3982a4b4fb5dc8ad5eba70b2416fb980b8ec.tar.gz |
Merge with birkenfeld/pygments-main
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r-- | pygments/formatters/html.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py index 1f0ca680..85a16ff8 100644 --- a/pygments/formatters/html.py +++ b/pygments/formatters/html.py @@ -5,7 +5,7 @@ Formatter for HTML output. - :copyright: Copyright 2006-2011 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -596,7 +596,7 @@ class HtmlFormatter(Formatter): def _wrap_lineanchors(self, inner): s = self.lineanchors - i = 0 + i = self.linenostart - 1 # subtract 1 since we have to increment i *before* yielding for t, line in inner: if t: i += 1 |