mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-22 15:42:20 +03:00
Do not add newline at eof with --no-format option
This commit is contained in:
parent
2339a3290d
commit
c4226aa08b
@ -239,10 +239,10 @@ fn main() {
|
||||
process::exit(1);
|
||||
}
|
||||
};
|
||||
let output = if output.ends_with('\n') {
|
||||
output
|
||||
} else {
|
||||
let output = if !output.ends_with('\n') && !cli::has_flag(&matches, "no_format") {
|
||||
format!("{}\n", output)
|
||||
} else {
|
||||
output
|
||||
};
|
||||
write_output(output.into_bytes(), output_file.as_deref());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user