aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-07-13 16:13:28 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-07-13 16:13:28 +0000
commit810ca51cf3c6f5156ab277f3cc31f84b50a3ae83 (patch)
treee571995e772569e6ecebd987e4cfbfa294754bff /table.c
parent* w3mimg/fb/fb_img.h (get_image_size): add missing prototypes (diff)
downloadw3m-810ca51cf3c6f5156ab277f3cc31f84b50a3ae83.tar.gz
w3m-810ca51cf3c6f5156ab277f3cc31f84b50a3ae83.zip
[w3m-dev 03937] <center> in <table>
* table.c (feed_table_tag): fix <center>,</center>,<div>,</div>, <p>,<br>,<nobr>,</nobr>,<wbr> check_rowcol() for <img> From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--table.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/table.c b/table.c
index ca04d4c..d070065 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.45 2003/05/14 16:02:41 ukai Exp $ */
+/* $Id: table.c,v 1.46 2003/07/13 16:13:29 ukai Exp $ */
/*
* HTML table
*/
@@ -2799,12 +2799,14 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
return TAG_ACTION_NONE;
case HTML_P:
case HTML_BR:
- case HTML_DT:
- case HTML_DD:
case HTML_CENTER:
case HTML_N_CENTER:
case HTML_DIV:
case HTML_N_DIV:
+ if (!(tbl->flag & TBL_IN_ROW))
+ break;
+ case HTML_DT:
+ case HTML_DD:
case HTML_H:
case HTML_N_H:
case HTML_LI:
@@ -2852,9 +2854,11 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
case HTML_N_UL:
feed_table_block_tag(tbl, line, mode, -1, cmd);
break;
- case HTML_PRE_INT:
case HTML_NOBR:
case HTML_WBR:
+ if (!(tbl->flag & TBL_IN_ROW))
+ break;
+ case HTML_PRE_INT:
feed_table_inline_tag(tbl, line, mode, -1);
switch (cmd) {
case HTML_NOBR:
@@ -2877,6 +2881,8 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
}
break;
case HTML_N_NOBR:
+ if (!(tbl->flag & TBL_IN_ROW))
+ break;
feed_table_inline_tag(tbl, line, mode, -1);
if (mode->nobr_level > 0)
mode->nobr_level--;
@@ -2888,6 +2894,7 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
mode->pre_mode &= ~TBLM_PRE_INT;
break;
case HTML_IMG:
+ check_rowcol(tbl, mode);
w = tbl->fixed_width[tbl->col];
if (w < 0) {
if (tbl->total_width > 0)