Update of /cvsroot/tidy/tidy/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv16650
Modified Files:
parser.c
Log Message:
Index: parser.c
===================================================================
RCS file: /cvsroot/tidy/tidy/src/parser.c,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -d -r1.187 -r1.188
--- parser.c 22 Mar 2008 20:02:42 -0000 1.187
+++ parser.c 27 Oct 2009 19:27:49 -0000 1.188
@@ -3468,8 +3468,11 @@
}
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) )
|