[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Request: please add XML_PARSE_NOBLANKS in xml.c

From: T.V. Raman
Subject: Request: please add XML_PARSE_NOBLANKS in xml.c
Date: Mon, 4 Apr 2011 20:10:18 -0700

Best Regards,
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_NOERROR);
+                        XML_PARSE_NOBLANKS |XML_PARSE_NOERROR);

   if (doc != NULL)
20:08:50 labrador src $

Best Regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]