Wrap pre-formatted nodes at word boundaries, not window width

Bug: 38043
Change-Id: I9b5e3b3e62b52c86743ee345b1cc31beec0a061e
Merge "Wrap pre-formatted nodes at word boundaries, not window width"