forked from enlightenment/efl
eina: prevent space stripping of CDATA in Eina_Simple_XML.
Prevent stripping spaces (after [CDATA[ and before ]]>) in XML like: <![CDATA[ <foo>bar</foo> ]]> Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
This commit is contained in:
parent
779356b45f
commit
8cac00fc66
|
@ -413,7 +413,7 @@ eina_simple_xml_parse(const char *buf, unsigned buflen, Eina_Bool strip, Eina_Si
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((strip) && (type != EINA_SIMPLE_XML_ERROR))
|
if ((strip) && (type != EINA_SIMPLE_XML_ERROR) && (type != EINA_SIMPLE_XML_CDATA))
|
||||||
{
|
{
|
||||||
start = _eina_simple_xml_whitespace_skip
|
start = _eina_simple_xml_whitespace_skip
|
||||||
(start, end);
|
(start, end);
|
||||||
|
|
Loading…
Reference in New Issue