aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-25 15:20:34 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-25 15:20:34 +0000
commit39ef0e6986a60a5e1afbd7f0141bbc87d5dbb6d6 (patch)
tree532ae5619ea7f03dd491dc3c368df750ace2aafe /table.c
parentindent comment (diff)
downloadw3m-39ef0e6986a60a5e1afbd7f0141bbc87d5dbb6d6.tar.gz
w3m-39ef0e6986a60a5e1afbd7f0141bbc87d5dbb6d6.zip
[w3m-dev 02875] rendering a table with inconsistent colspan,rowspan
* table.c (feed_table_tag): don't clear HTT_X|HTT_Y, instead, if set these flags, break the loop From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--table.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/table.c b/table.c
index 0e511b7..2f9b69a 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.15 2002/01/25 15:10:14 ukai Exp $ */
+/* $Id: table.c,v 1.16 2002/01/25 15:20:34 ukai Exp $ */
/*
* HTML table
*/
@@ -2656,7 +2656,11 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
for (i = 0; i < rowspan; i++) {
check_row(tbl, tbl->row + i);
for (j = 0; j < colspan; j++) {
+#if 0
tbl->tabattr[tbl->row + i][tbl->col + j] &= ~(HTT_X | HTT_Y);
+#endif
+ if (tbl->tabattr[tbl->row + i][tbl->col + j] & (HTT_X | HTT_Y))
+ break;
tbl->tabattr[tbl->row + i][tbl->col + j] |=
((i > 0) ? HTT_Y : 0) | ((j > 0) ? HTT_X : 0);
if (tbl->col + j > tbl->maxcol) {