Added test to ensure deliberate newlines are kept.