fix CDSect parse test regression

This commit is contained in:
cel 🌸 2024-10-31 20:53:49 +00:00
parent c41da2c89e
commit 793bc4bfea
1 changed files with 4 additions and 1 deletions

View File

@ -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)
}
}