Sheogorath 9951b7df7c
Fix ToC breaking documents with empty h* elements
Right now, the ToC has an undefined variable i that was an index in the
original ToC code. Since the major rewrite in
4fe062085324c50f2cfa062258559cf31858ef5f it's a recursive function
without this index. The variable `i` was wrongly copied into its current
place from the old code.

This patch replaces the variable `i` with the index of the header
element. Fix the undefined variable problem.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2018-11-19 18:27:06 +01:00
..
2018-10-10 23:42:41 +02:00
2018-10-31 15:33:45 +01:00
2016-11-14 16:45:57 +08:00
2018-11-07 12:30:17 +00:00
2018-06-24 13:24:12 +02:00
2017-01-21 12:52:26 +08:00