add newlines on consecutive runs