line numbers: Append a newline if it's not present

so that the code and the line numbers always contain the same number of lines
line #s bugfix: check for newline on the value

not the html, which will always be non-newline-terminated :\
add a test for preserving the line numbers
Merge branch 'hotfix.line-number-alignment'
refer directly to the token