Diff for /XML/HTMLparser.c between versions 1.47 and 1.48

version 1.47, 2000/07/02 07:54:07 version 1.48, 2000/07/02 11:57:05
Line 1191  static int areBlanks(htmlParserCtxtPtr c Line 1191  static int areBlanks(htmlParserCtxtPtr c
     for (i = 0;i < len;i++)      for (i = 0;i < len;i++)
         if (!(IS_BLANK(str[i]))) return(0);          if (!(IS_BLANK(str[i]))) return(0);
   
       if (CUR == 0) return(1);
     if (CUR != '<') return(0);      if (CUR != '<') return(0);
     if (ctxt->node == NULL) return(0);      if (ctxt->node == NULL) return(0);
     lastChild = xmlGetLastChild(ctxt->node);      lastChild = xmlGetLastChild(ctxt->node);
Line 3458  htmlParseTryOrFinish(htmlParserCtxtPtr c Line 3459  htmlParseTryOrFinish(htmlParserCtxtPtr c
                 if ((avail == 1) && (terminate)) {                  if ((avail == 1) && (terminate)) {
                     cur = in->cur[0];                      cur = in->cur[0];
                     if ((cur != '<') && (cur != '&')) {                      if ((cur != '<') && (cur != '&')) {
                         if ((ctxt->sax != NULL) &&                          if (ctxt->sax != NULL) {
                             (ctxt->sax->characters != NULL))                              if (IS_BLANK(cur)) {
                         ctxt->sax->characters(ctxt->userData, &cur, 1);                                  if (ctxt->sax->ignorableWhitespace != NULL)
                                       ctxt->sax->ignorableWhitespace(
                                               ctxt->userData, &cur, 1);
                               } else {
                                   if (ctxt->sax->characters != NULL)
                                       ctxt->sax->characters(
                                               ctxt->userData, &cur, 1);
                               }
                           }
                         ctxt->token = 0;                          ctxt->token = 0;
                         ctxt->checkIndex = 0;                          ctxt->checkIndex = 0;
                         NEXT;                          NEXT;

Removed from v.1.47  
changed lines
  Added in v.1.48


Webmaster