aboutsummaryrefslogtreecommitdiffstats
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
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--ChangeLog8
-rw-r--r--table.c6
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 30017f4..66ffa6e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2002-01-26 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+ * [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
+
+2002-01-26 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 02909] wrong table width calculation (sf.net Bug#506949)
* table.c (correct_table_matrix4): added
* table.c (set_table_matrix0): use correct_table_matrix4()
@@ -2297,4 +2303,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.262 2002/01/25 15:10:14 ukai Exp $
+$Id: ChangeLog,v 1.263 2002/01/25 15:20:34 ukai Exp $
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) {