We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d90bda + db36051 commit 5ae8316Copy full SHA for 5ae8316
1 file changed
src/uu/cat/src/cat.rs
@@ -557,10 +557,7 @@ fn write_new_line<W: Write>(
557
write!(writer, "{0:6}\t", state.line_number)?;
558
state.line_number += 1;
559
}
560
- writer.write_all(options.end_of_line().as_bytes())?;
561
- if is_interactive {
562
- writer.flush()?;
563
- }
+ write_end_of_line(writer, options.end_of_line().as_bytes(), is_interactive)?;
564
565
Ok(())
566
0 commit comments