Remove unnecessary newlines.