summaryrefslogtreecommitdiff
path: root/pygments/formatters/html.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-04 08:56:39 +0100
committerGeorg Brandl <georg@python.org>2012-02-04 08:56:39 +0100
commit0a5f19ba2e2aa4469f554fe3b65c74f4bae570e8 (patch)
treed7c6699f164b21f0eef371a384aa9aa5de51059e /pygments/formatters/html.py
parenta84feada5d2a1058b8edf1d8dd525ebb24f83f4b (diff)
parentc13478066c123dbe44118750b620c61d1801ea58 (diff)
downloadpygments-0a5f19ba2e2aa4469f554fe3b65c74f4bae570e8.tar.gz
Merged in leafo/pygments-main (pull request #43)
Diffstat (limited to 'pygments/formatters/html.py')
-rw-r--r--pygments/formatters/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/formatters/html.py b/pygments/formatters/html.py
index 1f0ca680..f6c6400a 100644
--- a/pygments/formatters/html.py
+++ b/pygments/formatters/html.py
@@ -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