Only change pre whitespace for wrapping

Fixes the white space of pre tags only if wrapping is necessary rather than also collapsing sequences of whitespace into a single whitespace. See http://www.w3schools.com/cssref/pr_text_white-space.asp