w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 4cf027f190de589265c78a22f19500808eb247ad
parent 3d30fb85af325de62917c467abf0fb22f01db0cc
Author: ukai <ukai>
Date:   Tue,  3 Dec 2002 15:49:52 +0000

[w3m-dev 03512] Re: HTML parser
* table.c (feed_table_tag): HTML_N_SELECT, HTML_N_CAPTION
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>

Diffstat:
MChangeLog | 5+++++
Mtable.c | 6++++++
2 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2002-12-04 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03512] Re: HTML parser + * table.c (feed_table_tag): HTML_N_SELECT, HTML_N_CAPTION + +2002-12-04 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp> + * [w3m-dev 03510] waiting time when cookie was rejected. * file.c (readHeader): display cookie warnings for only 1 sec diff --git a/table.c b/table.c @@ -2521,6 +2521,8 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, case HTML_N_FORM: case HTML_N_SELECT: /* mode->end_tag */ table_close_select(tbl, mode, width); + if (cmd == HTML_N_SELECT) + return TAG_ACTION_NONE; break; default: return TAG_ACTION_FEED; @@ -2531,6 +2533,8 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, CASE_TABLE_TAG: case HTML_N_CAPTION: mode->caption = 0; + if (cmd == HTML_N_CAPTION) + return TAG_ACTION_NONE; break; default: return TAG_ACTION_FEED; @@ -2920,6 +2924,7 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, mode->pre_mode |= TBLM_INSELECT; mode->end_tag = HTML_N_SELECT; break; + case HTML_N_SELECT: case HTML_OPTION: /* nothing */ break; @@ -3014,6 +3019,7 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, case HTML_CAPTION: mode->caption = 1; break; + case HTML_N_CAPTION: case HTML_THEAD: case HTML_N_THEAD: case HTML_TBODY: