summaryrefslogtreecommitdiff
path: root/pygments/formatters/html.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-04 10:49:13 +0100
committerGeorg Brandl <georg@python.org>2012-02-04 10:49:13 +0100
commit7cef32ec183e53298e76304b965f1ea2c5f3577c (patch)
tree28cec35ab3f3bcf2eb8def50c49d6610356297be /pygments/formatters/html.py
parentd541282daa49002937f56da77ac5bb3a4b4f15c3 (diff)
parent2c1a1ade8db7b432ff2b5c42cb40f7a898c05f5d (diff)
downloadpygments-7cef32ec183e53298e76304b965f1ea2c5f3577c.tar.gz
Merge and fix ECL lexer.
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