Bugfix: converting incorrect lines in scratch buffer

The original source line numbers were being converted to HTML in the scratch
buffer rather than the entire buffer.

h/t Ernie Miller for reporting the bug with a reproduceable test case