Remove superfluous newlines