Merge pull request #1259 from matthiasbeyer/imag-log/no-leading-space
Do not put a leading space in the log
This commit is contained in:
commit
864e457dce
1 changed files with 5 additions and 2 deletions
|
@ -188,8 +188,11 @@ fn get_log_text(rt: &Runtime) -> String {
|
||||||
rt.cli()
|
rt.cli()
|
||||||
.values_of("text")
|
.values_of("text")
|
||||||
.unwrap() // safe by clap
|
.unwrap() // safe by clap
|
||||||
.fold(String::with_capacity(500), |mut acc, e| {
|
.enumerate()
|
||||||
acc.push_str(" ");
|
.fold(String::with_capacity(500), |mut acc, (n, e)| {
|
||||||
|
if n != 0 {
|
||||||
|
acc.push_str(" ");
|
||||||
|
}
|
||||||
acc.push_str(e);
|
acc.push_str(e);
|
||||||
acc
|
acc
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue