diff --git a/src/rtd_state.rs b/src/rtd_state.rs index 6f696f2..d4073a3 100644 --- a/src/rtd_state.rs +++ b/src/rtd_state.rs @@ -185,7 +185,7 @@ impl RTDState { /// format. pub fn field_bool(&self, item: usize) -> Result { self.field_str(item, 1, RTDFieldJustification::None) - .map(|char| !char.is_empty()) + .map(|char| !char.trim().is_empty()) } } @@ -221,7 +221,7 @@ impl std::error::Error for RTDStateFieldError {} /// The justification of the field in the RTDState /// -/// Passing `Left` will trip the right side of the value for whitespace, `Right` +/// Passing `Left` will trim the right side of the value for whitespace, `Right` /// will trim the left, and `None` will avoid whitespace processing and will /// return the raw value. #[derive(Debug)]