projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
779356b
)
eina: prevent space stripping of CDATA in Eina_Simple_XML.
author
Vladislav Brovko
<v.brovko@samsung.com>
Mon, 11 Mar 2013 02:02:33 +0000
(11:02 +0900)
committer
Cedric BAIL
<cedric.bail@samsung.com>
Mon, 11 Mar 2013 02:03:05 +0000
(11:03 +0900)
Prevent stripping spaces (after [CDATA[ and before ]]>) in XML like:
<![CDATA[ <foo>bar</foo> ]]>
Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
src/lib/eina/eina_simple_xml_parser.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_simple_xml_parser.c
b/src/lib/eina/eina_simple_xml_parser.c
index
5becc27
..
2ead2e2
100644
(file)
--- 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);