diff --git a/src/printer.rs b/src/printer.rs index afa2ac8b9e..10a44fba79 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -243,6 +243,10 @@ impl<'a> Printer for InteractivePrinter<'a> { )).collect::>() .join("") )?; + + if line.bytes().next_back() != Some(b'\n') { + write!(handle, "\n")?; + } } else { for &(style, region) in regions.iter() { let mut ansi_iterator = AnsiCodeIterator::new(region);