Add a function to collapse adjacent spaces into one so the ppr tests
can pass on GHC 7.4.x and GHC 7.6.x