From 87302331c2eec82bd19414b4f8c76450d6637eae Mon Sep 17 00:00:00 2001 From: "T.V. Raman" Date: Fri, 8 Apr 2011 12:15:30 -0400 Subject: [PATCH] * src/xml.c (parse_region): Avoid creating spurious whiespace nodes. See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00200.html --- src/ChangeLog | 4 ++++ src/xml.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7f0dc9a8e26..dc06f81d972 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-04-08 T.V. Raman (tiny change) + + * xml.c (parse_region): Avoid creating spurious whiespace nodes. + 2011-04-08 Chong Yidong * keyboard.c (read_char): Call Lisp function help-form-show, diff --git a/src/xml.c b/src/xml.c index d8e6f8c3faa..63041c96b24 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) { -- 2.39.2