After looking at pg_regress to see which options it passes to diff I discovered that it passes -w on windows to ignore ALL white space.
The attached simple patch changes this so that it only ignores carriage returns. It does this by passing --strip-trailing-cr to diff instead of -w. This should help us few developers who use windows to get our white space correct in out expected results so that the tests also pass on non windows platforms.