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.  r? @glennw