Fix line iterator edge cases
Fix line iterator edge cases

When dealing with an empty buffer, we should return a single empty line.
Also, when dealing with a trailing newline, we should return an empty
line on the next iteration.

jmacdonald/scribe