Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 3c5d782bb690c163d8ffb72298bf4caa > files > 1

tidy-20090904-6.mga4.src.rpm

--- tidy-20090904/src/parser.c	2008-03-22 16:02:42.000000000 -0400
+++ tidy/src/parser.c	2009-10-27 15:27:49.000000000 -0400
@@ -5,9 +5,9 @@
   
   CVS Info :
 
-    $Author: arnaud02 $ 
-    $Date: 2008/03/22 20:02:42 $ 
-    $Revision: 1.187 $ 
+    $Author: krusch $ 
+    $Date: 2009/10/27 19:27:49 $ 
+    $Revision: 1.188 $ 
 
 */
 
@@ -3468,8 +3468,11 @@ void TY_(ParseBody)(TidyDocImpl* doc, No
             }
             else if (node->tag->model & (CM_TABLE | CM_ROWGRP | CM_ROW))
             {
-                TY_(UngetToken)( doc );
-                node = TY_(InferredTag)(doc, TidyTag_TABLE);
+                /* http://tidy.sf.net/issue/2855621 */
+                if (node->type != EndTag) {
+                    TY_(UngetToken)( doc );
+                    node = TY_(InferredTag)(doc, TidyTag_TABLE);
+                }
                 lexer->excludeBlocks = yes;
             }
             else if ( nodeIsINPUT(node) )