From 793bc4bfea65d5d6a6f80507d2f0f659ecb38221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?cel=20=F0=9F=8C=B8?= Date: Thu, 31 Oct 2024 20:53:49 +0000 Subject: [PATCH] fix CDSect parse test regression --- src/xml/parsers.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/xml/parsers.rs b/src/xml/parsers.rs index 135f5c7..b8b8018 100644 --- a/src/xml/parsers.rs +++ b/src/xml/parsers.rs @@ -410,7 +410,10 @@ impl<'s> Parser<'s, PITarget<'s>> for PITarget<'s> { /// [18] CDSect ::= CDStart CData CDEnd impl<'s> Parser<'s, CDSect<'s>> for CDSect<'s> { fn parse(input: &'s str) -> IResult<&str, CDSect<'s>> { - map(CData::parse, |c_data| CDSect(c_data))(input) + map( + delimited(CDStart::parse, CData::parse, CDEnd::parse), + |c_data| CDSect(c_data), + )(input) } }