From 20093d7683932875356e6900dfe1acb8a7cd4811 Mon Sep 17 00:00:00 2001 From: p6nj Date: Mon, 4 Nov 2024 18:01:56 -0500 Subject: [PATCH] simplify space parser --- src/bng/score.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bng/score.rs b/src/bng/score.rs index 7d9be29..aac798e 100644 --- a/src/bng/score.rs +++ b/src/bng/score.rs @@ -126,8 +126,8 @@ impl<'de> Deserialize<'de> for Atoms { deserializer.deserialize_struct("NotesSheet", FIELDS, NotesSheetVisitor)?; let x = all_consuming(terminated( many0(preceded(many0(one_of(" \t\r")), flat_atom_parser(¬es))), - many0(alt((char('\t'), char(' '), char('\n'), char('\r')))), - ))(&sheet) + many0(one_of(" \t\r")), + ))(dbg!(&sheet)) .map_err(nom_err_message) .map_err(AtomsSerializeError::Parsing) .map_err(de::Error::custom)