changed write!() to writeln!() to add a newline

This commit is contained in:
Andreas Steding 2020-06-10 15:35:54 +02:00
parent d67c3bb7d3
commit abef54862d

View file

@ -1885,12 +1885,12 @@ impl<'b> App<'b> {
if let Some(bn) = self.bin_name.as_ref() {
if bn.contains(' ') {
// In case we're dealing with subcommands i.e. git mv is translated to git-mv
write!(w, "{} {}", bn.replace(" ", "-"), ver)
writeln!(w, "{} {}", bn.replace(" ", "-"), ver)
} else {
write!(w, "{} {}", &self.name[..], ver)
writeln!(w, "{} {}", &self.name[..], ver)
}
} else {
write!(w, "{} {}", &self.name[..], ver)
writeln!(w, "{} {}", &self.name[..], ver)
}
}