* src/xml.c (parse_region): Avoid creating spurious whiespace nodes.
authorT.V. Raman <tv.raman.tv@gmail.com>
Fri, 8 Apr 2011 16:15:30 +0000 (12:15 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 8 Apr 2011 16:15:30 +0000 (12:15 -0400)
See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00200.html

src/ChangeLog
src/xml.c

index 7f0dc9a..dc06f81 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-08  T.V. Raman  <tv.raman.tv@gmail.com>  (tiny change)
+
+       * xml.c (parse_region): Avoid creating spurious whiespace nodes.
+
 2011-04-08  Chong Yidong  <cyd@stupidchicken.com>
 
        * keyboard.c (read_char): Call Lisp function help-form-show,
index d8e6f8c..63041c9 100644 (file)
--- 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)
     {