Add support for `pre-wrap` and `pre-line` values for `white-space`. …
This is mostly straightforward. I had to modify a couple of places which were accidentally discarding whitespace. Fixes #1513.