Diff for /Amaya/amaya/XHTMLbuilder.c between versions 1.138 and 1.139

version 1.138, 2006/12/01 15:37:54 version 1.139, 2007/01/05 13:16:24
Line 420  void XhtmlElementComplete (ParserData *c Line 420  void XhtmlElementComplete (ParserData *c
             {              {
               data = (char *)TtaGetMemory (length + 1);                data = (char *)TtaGetMemory (length + 1);
               TtaGiveTextAttributeValue (attr, data, &length);                TtaGiveTextAttributeValue (attr, data, &length);
               if (!isImage)                if (!isImage && length >= 5)
                 if (!strcmp (&data[length-3], "mml") ||                  if (!strcmp (&data[length-4], ".mml") ||
                     !strcmp (&data[length-3], "gif") ||                      !strcmp (&data[length-4], ".gif") ||
                     !strcmp (&data[length-3], "jpg") ||                      !strcmp (&data[length-4], ".jpg") ||
                     !strcmp (&data[length-4], "jpeg") ||                      !strcmp (&data[length-5], ".jpeg") ||
                     !strcmp (&data[length-3], "png") ||                      !strcmp (&data[length-4], ".png") ||
                     !strcmp (&data[length-3], "svg") ||                      !strcmp (&data[length-4], ".svg") ||
                     !strcmp (&data[length-4], "svgz") ||                      !strcmp (&data[length-5], ".svgz") ||
                     !strcmp (&data[length-3], "htm") ||                      !strcmp (&data[length-4], ".htm") ||
                     !strcmp (&data[length-4], "html") ||                      !strcmp (&data[length-5], ".html") ||
                     !strcmp (&data[length-3], "xml"))                      !strcmp (&data[length-4], ".xml"))
                   isImage = TRUE;                    isImage = TRUE;
             }              }
         }          }
Line 512  void XhtmlElementComplete (ParserData *c Line 512  void XhtmlElementComplete (ParserData *c
       if (child)        if (child)
         /* the object element has at least 1 child element */          /* the object element has at least 1 child element */
         {          {
             /* put an attribute NoObjects on the Object element: this attribute
                will be removed when and if the actual object is loaded (see
                module HTMLimage.c */
             attrType.AttrTypeNum = HTML_ATTR_NoObjects;
             attr = TtaGetAttribute (el, attrType);
             if (!attr)
               {
                 attr = TtaNewAttribute (attrType);
                 TtaSetAttributeValue (attr, 1, el, doc);
                 TtaAttachAttribute (el, attr, doc);
               }
   
           content = NULL;            content = NULL;
           desc = child;            desc = child;
           elType = TtaGetElementType (desc);            elType = TtaGetElementType (desc);

Removed from v.1.138  
changed lines
  Added in v.1.139


Webmaster