hgweb: enumerate lines in loop header, not before
Doing this will allow access to the lines in arbitrary order (because the
result of enumerate() is an iterator), and that will help calculating rowspan
for annotate blocks.
#require docutils gettext $ $TESTDIR/check-gendoc zh_TW checking for parse errors