aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2024-10-31 20:53:49 +0000
committerLibravatar cel 🌸 <cel@bunny.garden>2024-10-31 20:53:49 +0000
commit793bc4bfea65d5d6a6f80507d2f0f659ecb38221 (patch)
tree154c51323b5a99a6109dc27f96ce4d2e2e662d54
parentc41da2c89e2c188d9238b2c3e1555ed81335c81d (diff)
downloadpeanuts-793bc4bfea65d5d6a6f80507d2f0f659ecb38221.tar.gz
peanuts-793bc4bfea65d5d6a6f80507d2f0f659ecb38221.tar.bz2
peanuts-793bc4bfea65d5d6a6f80507d2f0f659ecb38221.zip
fix CDSect parse test regression
-rw-r--r--src/xml/parsers.rs5
1 files changed, 4 insertions, 1 deletions
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)
}
}