aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
}
}