Use white-space: pre-wrap on element and strip all newlines.

I think this fixes up the most annoying things.