From f37dbb80a864716a3d55d703ff66203bbfc4cc49 Mon Sep 17 00:00:00 2001 From: Maksim Panfilov Date: Wed, 24 Apr 2019 17:11:31 +0300 Subject: [PATCH] Added printing of "" for binary files in the interactive mode if header decorations are turned off --- src/printer.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/printer.rs b/src/printer.rs index 880a8b4..b264792 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -194,6 +194,9 @@ impl<'a> InteractivePrinter<'a> { impl<'a> Printer for InteractivePrinter<'a> { fn print_header(&mut self, handle: &mut Write, file: InputFile) -> Result<()> { if !self.config.output_components.header() { + if ContentType::BINARY == self.content_type { + writeln!(handle, "")?; + } return Ok(()); }