Fix anchor offsets for line numbers
Merge pull request #2049 from ahocevar/anchor-line-numbers

Fix anchor offsets for line numbers