Commit 02322340 authored by Stefan Behnel's avatar Stefan Behnel

fix off-by-one in line number annotations

parent 6449d43c
......@@ -155,7 +155,7 @@ body { font-family: courier; font-size: 12; }
return ur"<span class='cython %s'>%s</span>" % (
group_name, match.group(group_name))
for k, line in enumerate(lines):
for k, line in enumerate(lines, 1):
line = html_escape(line)
try:
code = code_source_file[k]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment