unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 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

* Re: Request: please add XML_PARSE_NOBLANKS in xml.c
  2011-04-05  3:10 Request: please add XML_PARSE_NOBLANKS in xml.c T.V. Raman
@ 2011-04-08 16:15 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2011-04-08 16:15 UTC (permalink / raw)
  To: T.V. Raman; +Cc: emacs-devel

"T.V. Raman" <tv.raman.tv@gmail.com> writes:

> As implemented, libxml-parse-xml-region creates spurious
> whitespace nodes in the returned output. Could you please apply
> the attached patch:

Applied, thanks.



^ permalink raw reply	[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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).