* Request: please add XML_PARSE_NOBLANKS in xml.c
@ 2011-04-05 3:10 T.V. Raman
2011-04-08 16:15 ` Chong Yidong
0 siblings, 1 reply; 2+ messages in thread
From: T.V. Raman @ 2011-04-05 3:10 UTC (permalink / raw)
To: emacs-devel
--
Best Regards,
--raman
As implemented, libxml-parse-xml-region creates spurious
whitespace nodes in the returned output. Could you please apply
the attached patch:
git diff xml.c
diff --git a/src/xml.c b/src/xml.c
index d8e6f8c..63041c9 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -113,7 +113,7 @@ parse_region (Lisp_Object start, Lisp_Object end,
Lisp_Object base_url, int html
doc = xmlReadMemory ((char *) BYTE_POS_ADDR (CHAR_TO_BYTE (istart)),
bytes, burl, "utf-8",
XML_PARSE_NONET|XML_PARSE_NOWARNING|
- XML_PARSE_NOERROR);
+ XML_PARSE_NOBLANKS |XML_PARSE_NOERROR);
if (doc != NULL)
{
20:08:50 labrador src $
--
Best Regards,
--raman
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-04-08 16:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-05 3:10 Request: please add XML_PARSE_NOBLANKS in xml.c T.V. Raman
2011-04-08 16:15 ` Chong Yidong
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.