w3m

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

commit b5196eafd84b23e91810094103e74d3004fc27be
parent c949d9b62e365ac29589da19515c47667bde2a34
Author: inu <inu>
Date:   Sat,  8 Apr 2006 11:51:59 +0000

close textarea when table related tags are found.

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

diff --git a/ChangeLog b/ChangeLog @@ -1,5 +1,10 @@ 2006-04-08 Dai Sato <satodai@w3m.jp> + * [w3m-dev 04154] Unclosed textarea in table + * table.c: close textarea when table related tags found. + +2006-04-08 Dai Sato <satodai@w3m.jp> + * [w3m-dev 04153] NEXT_LINK error * anchor.c, filc.c, fm.h: check A tag in HTMLlineproc2body(). diff --git a/table.c b/table.c @@ -2465,11 +2465,16 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode, return TAG_ACTION_PLAIN; } if (mode->pre_mode & TBLM_INTXTA) { - if (mode->end_tag == cmd) { + switch (cmd) { + CASE_TABLE_TAG: + case HTML_N_TEXTAREA: table_close_textarea(tbl, mode, width); - return TAG_ACTION_NONE; + if (cmd == HTML_N_TEXTAREA) + return TAG_ACTION_NONE; + break; + default: + return TAG_ACTION_FEED; } - return TAG_ACTION_FEED; } if (mode->pre_mode & TBLM_SCRIPT) { if (mode->end_tag == cmd) {