File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changes in HTMLDOC v1.9.18
2
2
3
+ - Fixed table rendering when there are missing ` </tr> ` (Issue #494 )
3
4
- Fixed support for links of the form "filename.html#anchor" in PDF output
4
5
(Issue #514 )
5
6
- Fixed ` --header1 ` support for web page output (Issue #515 )
Original file line number Diff line number Diff line change 1
1
/*
2
2
* HTML parsing routines for HTMLDOC, a HTML document processing program.
3
3
*
4
- * Copyright 2011-2023 by Michael R Sweet.
4
+ * Copyright 2011-2024 by Michael R Sweet.
5
5
* Copyright 1997-2010 by Easy Software Products. All rights reserved.
6
6
*
7
7
* This program is free software. Distribution and use rights are outlined in
@@ -571,9 +571,23 @@ htmlReadFile(tree_t *parent, // I - Parent tree entry
571
571
break ;
572
572
}
573
573
}
574
+ else if (t->markup == MARKUP_TR)
575
+ {
576
+ for (temp = parent; temp != NULL ; temp = temp->parent )
577
+ {
578
+ if (temp->markup == MARKUP_TR)
579
+ break ;
580
+ else if (temp->markup == MARKUP_TABLE || t->markup == MARKUP_THEAD || t->markup == MARKUP_TBODY || t->markup == MARKUP_TFOOT || temp->markup == MARKUP_EMBED)
581
+ {
582
+ temp = NULL ;
583
+ break ;
584
+ }
585
+ }
586
+ }
574
587
else if (istentry (t->markup ))
575
588
{
576
589
for (temp = parent; temp != NULL ; temp = temp->parent )
590
+ {
577
591
if (istentry (temp->markup ))
578
592
break ;
579
593
else if (temp->markup == MARKUP_TABLE || istable (temp->markup ) ||
@@ -598,6 +612,7 @@ htmlReadFile(tree_t *parent, // I - Parent tree entry
598
612
temp = NULL ;
599
613
break ;
600
614
}
615
+ }
601
616
}
602
617
else
603
618
temp = NULL ;
You can’t perform that action at this time.
0 commit comments