layout: Use a flag to record whether we need to perform a line break if

wrapping on newlines rather than searching for a newline character.

Since the newline character might have been stripped out during
whitespace stripping, this was incorrect.

Fixes the "jumpiness" seen on the Google home page, Wikipedia, and many
other places.
This commit is contained in:
Patrick Walton 2015-04-23 14:12:22 -07:00
parent 3d6d102fd1
commit 8741d9e8c4
3 changed files with 47 additions and 13 deletions

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<!-- This will become "jumpy" when mousing over "Bar" if trailing newlines are stripped from
fragments during inline layout. -->
<table><td><div style="white-space: pre">
Foo</div></td><td><a href="/">Bar</a></td></table>