Remove extraneous newlines.