Fix newlines from accumulating unnecessarily.