From 810ca51cf3c6f5156ab277f3cc31f84b50a3ae83 Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Sun, 13 Jul 2003 16:13:28 +0000 Subject: [w3m-dev 03937]
in * table.c (feed_table_tag): fix
,
,
,
,

,
,,, check_rowcol() for From: Hironori SAKAMOTO --- ChangeLog | 12 ++++++++++-- table.c | 15 +++++++++++---- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 83e32c8..81952ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,12 @@ -2003-07-10 Fumitoshi UKAI +2003-07-14 Hironori SAKAMOTO + + * [w3m-dev 03937]

in
+ * table.c (feed_table_tag): fix
,
,
,
, +

,
,,, + check_rowcol() for + + +2003-07-10 Fumitoshi UKAI * w3mimg/fb/fb_img.h (get_image_size): add missing prototypes * w3mimg/fb/fb.c (fb_clear): unused variable `j' @@ -7916,4 +7924,4 @@ a * [w3m-dev 03276] compile error on EWS4800 * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.849 2003/07/09 15:07:10 ukai Exp $ +$Id: ChangeLog,v 1.850 2003/07/13 16:13:28 ukai Exp $ 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) -- cgit v1.2.3