Whitespace after textarea/pre patch

Fix for issue #77 with collapseWhitespace tests.