Fix: Do not write newline character when asked not to do
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
parent
1d89844613
commit
9f100f2f75
1 changed files with 1 additions and 1 deletions
|
@ -180,7 +180,7 @@ pub fn ask_question(question: &str, nl: bool, output: &mut Write) -> Result<()>
|
||||||
if nl {
|
if nl {
|
||||||
writeln!(output, "[imag]: {}?", Yellow.paint(question)).map_err(Error::from)
|
writeln!(output, "[imag]: {}?", Yellow.paint(question)).map_err(Error::from)
|
||||||
} else {
|
} else {
|
||||||
writeln!(output, "[imag]: {}?", Yellow.paint(question)).map_err(Error::from)
|
write!(output, "[imag]: {}?", Yellow.paint(question)).map_err(Error::from)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue