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:
Vladislav Brovko 2013-03-11 11:02:33 +09:00 committed by Cedric BAIL
parent 779356b45f
commit 8cac00fc66
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ eina_simple_xml_parse(const char *buf, unsigned buflen, Eina_Bool strip, Eina_Si
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, end);