summaryrefslogtreecommitdiffstats
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs
index d87a602..300408b 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -51,9 +51,15 @@ impl Config {
}
};
- let output_separator = match opt.output_field_separator.clone() {
- Some(s) => s.into_boxed_str().into_boxed_bytes(),
- None => Box::new([0x20; 1]),
+ let output_separator = match opt.character_wise {
+ false => match opt.output_field_separator.clone() {
+ Some(s) => s.into_boxed_str().into_boxed_bytes(),
+ None => Box::new([0x20; 1]),
+ },
+ true => match opt.output_field_separator.clone() {
+ Some(s) => s.into_boxed_str().into_boxed_bytes(),
+ None => Box::new([]),
+ },
};
Config {