From 722ea29747d6e820490db0bf988cda86c3341565 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Wed, 25 Sep 2024 20:52:08 -0700 Subject: [PATCH 1/1] Verify double-line-skip behavior without spacer rows --- src/lib.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 73e517b..e11f08b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -410,6 +410,21 @@ mod tests { }) ] ); + assert_eq!( + read_rows(&b"foo\n\n\nbar\n"[..]) + .flatten() + .collect::>(), + vec![ + Rowlike::Row(Row { + label: "foo".to_owned(), + entries: HashMap::new(), + }), + Rowlike::Row(Row { + label: "bar".to_owned(), + entries: HashMap::new(), + }) + ] + ); assert_eq!( read_rows(&b"foo\n \nbar\n"[..]) .flatten() -- 2.44.1