Fix line splitting in `white-space: pre` flows

The newline position from one line was getting used repeatedly, causing extra
"phantom" newlines in the following lines.  Fixes #3413.
Merge pull request #3414 from mbrubeck/pre-line-break

Fix line splitting in `white-space: pre` flows. r=gw