line #s bugfix: check for newline on the value

not the html, which will always be non-newline-terminated :\