aboutsummaryrefslogtreecommitdiffstats
path: root/table.c
diff options
context:
space:
mode:
authorDai Sato <satodai@w3m.jp>2006-04-08 11:51:59 +0000
committerDai Sato <satodai@w3m.jp>2006-04-08 11:51:59 +0000
commit8b6920fd2a1e2a6283279bce9c9b219997658123 (patch)
tree2f1669127e4fcbc398b3bec51d507ea497c5953e /table.c
parentcheck A tag in HTMLlineproc2body(). (diff)
downloadw3m-8b6920fd2a1e2a6283279bce9c9b219997658123.tar.gz
w3m-8b6920fd2a1e2a6283279bce9c9b219997658123.zip
close textarea when table related tags are found.
Diffstat (limited to '')
-rw-r--r--table.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/table.c b/table.c
index 387ac60..44991bd 100644
--- a/table.c
+++ b/table.c
@@ -1,4 +1,4 @@
-/* $Id: table.c,v 1.52 2006/04/07 13:35:35 inu Exp $ */
+/* $Id: table.c,v 1.53 2006/04/08 11:52:02 inu Exp $ */
/*
* HTML table
*/
@@ -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) {