1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-07 13:41:14 +00:00

Fix double spaces when outputting without wrapping.

This commit is contained in:
eth-p 2018-05-12 14:02:47 -07:00
parent f7e055b6b7
commit b4cfc9633c
No known key found for this signature in database
GPG Key ID: 1F8DF8091CD46FBC

View File

@ -135,7 +135,7 @@ impl<'a> Printer<'a> {
regions.iter() regions.iter()
.map(|&(style, text)| as_terminal_escaped(style, text, true_color, colored_output)) .map(|&(style, text)| as_terminal_escaped(style, text, true_color, colored_output))
.collect::<Vec<_>>() .collect::<Vec<_>>()
.join(" ") .join("")
)?; )?;
} else { } else {
for &(style, text) in regions.iter() { for &(style, text) in regions.iter() {