From 8cac00fc6624e6ba703b25ad316ce45503dfa79d Mon Sep 17 00:00:00 2001 From: Vladislav Brovko Date: Mon, 11 Mar 2013 11:02:33 +0900 Subject: [PATCH] eina: prevent space stripping of CDATA in Eina_Simple_XML. Prevent stripping spaces (after [CDATA[ and before ]]>) in XML like: bar ]]> Signed-off-by: Cedric BAIL --- src/lib/eina/eina_simple_xml_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eina/eina_simple_xml_parser.c b/src/lib/eina/eina_simple_xml_parser.c index 5becc27859..2ead2e2683 100644 --- a/src/lib/eina/eina_simple_xml_parser.c +++ b/src/lib/eina/eina_simple_xml_parser.c @@ -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);