Updates default minimum spaces to allow single spaces by default.

This commit is contained in:
Thomas Hartmann 2019-10-15 22:05:47 +02:00
parent 0d2044e72e
commit f8d44e732b

View file

@ -12,7 +12,7 @@ pub struct FromSSVArgs {
} }
const STRING_REPRESENTATION: &str = "from-ssv"; const STRING_REPRESENTATION: &str = "from-ssv";
const DEFAULT_ALLOWED_SPACES: usize = 0; const DEFAULT_MINIMUM_SPACES: usize = 2;
impl WholeStreamCommand for FromSSV { impl WholeStreamCommand for FromSSV {
fn name(&self) -> &str { fn name(&self) -> &str {
@ -116,7 +116,7 @@ fn from_ssv(
let mut latest_tag: Option<Tag> = None; let mut latest_tag: Option<Tag> = None;
let split_at = match minimum_spaces { let split_at = match minimum_spaces {
Some(number) => number.item, Some(number) => number.item,
None => DEFAULT_ALLOWED_SPACES None => DEFAULT_MINIMUM_SPACES
}; };
for value in values { for value in values {