diff options
author | Georg Brandl <georg@python.org> | 2013-01-09 13:55:34 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-01-09 13:55:34 +0100 |
commit | 0b03ce73a68bc794d4891b3cbbc581c7ccf3e03a (patch) | |
tree | 974acd81bf20d7ee04f66b07dd368cc5cd563ddc /pygments/formatters/html.py | |
parent | 81404c17958310b626cfa335a6ba22b261b317f4 (diff) | |
parent | bc227d88fb35c7487c7425a4f2461ac364fc7d06 (diff) | |
download | pygments-0b03ce73a68bc794d4891b3cbbc581c7ccf3e03a.tar.gz |
Merged in pyos/pygments-main (pull request #116: Add dg source code lexer.)
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 |