diff options
author | Georg Brandl <georg@python.org> | 2013-01-09 13:15:36 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-01-09 13:15:36 +0100 |
commit | 1b551e169d6c29d49c90baa62ea8886a7e8be46f (patch) | |
tree | 4c57f637cf7d23a1a52f058b1dba36d32d1ed73d /pygments/formatters/html.py | |
parent | 01ff62d16bcb567d2c7becd241e2b5bfb1bd3a93 (diff) | |
parent | 73a4b067b9ec07088e7c2e77e3f3c040aedcd50c (diff) | |
download | pygments-1b551e169d6c29d49c90baa62ea8886a7e8be46f.tar.gz |
Merged in alastairh/pygments (pull request #141: Improve and unify C family language lexers)
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 85a16ff8..075ad022 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. """ @@ -596,7 +596,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 |