fix CDSect parse test regression
This commit is contained in:
parent
c41da2c89e
commit
793bc4bfea
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue