commit c946bcee74700f56299971e39e8195dd02d08318
parent b4958dc1796f3ce94b074b2424ce167aaf0571fd
Author: ukai <ukai>
Date: Thu, 27 Dec 2001 17:56:02 +0000
[w3m-dev 02769] <form>..</form> as block element
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat:
3 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,9 @@
+2001-12-28 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 02769] <form>..</form> as block element
+ * file.c (HTMLtagproc1): CLOSE_P for <form>...</form>
+ * table.c (feed_table_tag): add feed_table_block_tag for <form></form>
+
2001-12-28 Hironori Sakamoto <h-saka@lsi.nec.co.jp>
* [w3m-dev 02765] backend
diff --git a/file.c b/file.c
@@ -3619,10 +3619,16 @@ HTMLtagproc1(struct parsed_tag *tag, struct html_feed_environ *h_env)
return 1;
case HTML_FORM:
case HTML_FORM_INT:
+ CLOSE_P;
+ if (!(obuf->flag & RB_IGNORE_P))
+ flushline(h_env, obuf, envs[h_env->envc].indent, 0, h_env->limit);
process_form(tag);
return 1;
case HTML_N_FORM:
case HTML_N_FORM_INT:
+ CLOSE_P;
+ flushline(h_env, obuf, envs[h_env->envc].indent, 0, h_env->limit);
+ obuf->flag |= RB_IGNORE_P;
process_n_form();
return 1;
case HTML_INPUT:
diff --git a/table.c b/table.c
@@ -2786,9 +2786,11 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
feed_table1(tbl, tok, mode, width);
break;
case HTML_FORM:
+ feed_table_block_tag(tbl, line, mode, 0, cmd);
process_form(tag);
break;
case HTML_N_FORM:
+ feed_table_block_tag(tbl, line, mode, 0, cmd);
process_n_form();
break;
case HTML_INPUT: