Replace grouped whitespace by single

When newlines are used to separate text they mess up formatting if removed