all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "T.V. Raman" <tv.raman.tv@gmail.com>
To: emacs-devel@gnu.org
Subject: Request: please add XML_PARSE_NOBLANKS in xml.c
Date: Mon, 4 Apr 2011 20:10:18 -0700	[thread overview]
Message-ID: <BANLkTi=fN3oBA8iLkiC3LV3mX7C-WFa0rg@mail.gmail.com> (raw)

-- 
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



             reply	other threads:[~2011-04-05  3:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-05  3:10 T.V. Raman [this message]
2011-04-08 16:15 ` Request: please add XML_PARSE_NOBLANKS in xml.c Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='BANLkTi=fN3oBA8iLkiC3LV3mX7C-WFa0rg@mail.gmail.com' \
    --to=tv.raman.tv@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.