[libxml2] Fix some missing commas in HTML element lists



commit 4b41f15dcd7f313eaa058bbbc61f840d6fad50cd
Author: Eugene Pimenov <libc me com>
Date:   Wed Jan 20 14:25:59 2010 +0100

    Fix some missing commas in HTML element lists
    
    * HTMLparse.c: fix the macros BLOCK and INLINE to use commas and
      avoid transparent contatenation of strings

 HTMLparser.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index f638511..9e275a2 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -567,9 +567,9 @@ htmlSkipBlankChars(xmlParserCtxtPtr ctxt) {
 #define NB_PHRASE 10
 #define SPECIAL "a", "img", "applet", "embed", "object", "font", "basefont", "br", "script", "map", "q", "sub", "sup", "span", "bdo", "iframe"
 #define NB_SPECIAL 16
-#define INLINE PCDATA FONTSTYLE PHRASE SPECIAL FORMCTRL
+#define INLINE FONTSTYLE, PHRASE, SPECIAL, FORMCTRL
 #define NB_INLINE NB_PCDATA + NB_FONTSTYLE + NB_PHRASE + NB_SPECIAL + NB_FORMCTRL
-#define BLOCK HEADING, LIST "pre", "p", "dl", "div", "center", "noscript", "noframes", "blockquote", "form", "isindex", "hr", "table", "fieldset", "address"
+#define BLOCK HEADING, LIST, "pre", "p", "dl", "div", "center", "noscript", "noframes", "blockquote", "form", "isindex", "hr", "table", "fieldset", "address"
 #define NB_BLOCK NB_HEADING + NB_LIST + 14
 #define FORMCTRL "input", "select", "textarea", "label", "button"
 #define NB_FORMCTRL 5



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