X-Git-Url: http://git.scottworley.com/tablify/blobdiff_plain/722ea29747d6e820490db0bf988cda86c3341565..14a039db4c850c41ca1cd72c692afe59d6d1347b:/src/lib.rs?ds=inline diff --git a/src/lib.rs b/src/lib.rs index e11f08b..744dc66 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -138,7 +138,7 @@ impl>> Iterator for Reader InputLine::Blank if self.row.is_some() => { return Ok(std::mem::take(&mut self.row).map(Rowlike::Row)).transpose() } - InputLine::Blank => {} + InputLine::Blank => return Some(Ok(Rowlike::Spacer)), InputLine::Entry(col, instance) => match &mut self.row { None => { return Some(Err(std::io::Error::other(format!( @@ -419,6 +419,7 @@ mod tests { label: "foo".to_owned(), entries: HashMap::new(), }), + Rowlike::Spacer, Rowlike::Row(Row { label: "bar".to_owned(), entries: HashMap::new(),