mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-26 11:43:08 +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);
|
process::exit(1);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let output = if output.ends_with('\n') {
|
let output = if !output.ends_with('\n') && !cli::has_flag(&matches, "no_format") {
|
||||||
output
|
|
||||||
} else {
|
|
||||||
format!("{}\n", output)
|
format!("{}\n", output)
|
||||||
|
} else {
|
||||||
|
output
|
||||||
};
|
};
|
||||||
write_output(output.into_bytes(), output_file.as_deref());
|
write_output(output.into_bytes(), output_file.as_deref());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user