diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-05 12:31:27 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-05 12:31:27 +0000 |
commit | 735d0c1d5743f4f1610b06b43ec20e4fb0c45441 (patch) | |
tree | 568240716cad82cabe64222c47508a3396dee2d5 /main.c | |
parent | [w3m-dev 02990] (diff) | |
download | w3m-735d0c1d5743f4f1610b06b43ec20e4fb0c45441.tar.gz w3m-735d0c1d5743f4f1610b06b43ec20e4fb0c45441.zip |
[w3m-dev 02991] form support in w3m -halfdump foo.html|w3m -halfload
* fm.h (DUMP_HALFEXTRA): deleted
* proto.h (process_select): return Str
* file.c (process_img): process_form() fix
* file.c (process_input): process_form() fix
* file.c (process_select): return Str
process_form() fix
* file.c (process_textarea): process_form() fix
* file.c (process_form): support -halfdump
* file.c (HTMLtagproc1): delete case HTML_FORM_INT, HTML_N_FORM_INT
process_{form,select,textarea}() fix
* file.c (HTMLlineproc2body): support -halfload
HTML_INTERNAL, HTML_N_INTERNAL,
HTML_FORM_INT, HTML_FORM_INT,
HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT,
HTML_SELECT_INT, HTML_N_SELECT_INT,
HTML_OPTION_INT, HTML_TITLE_ALT
* file.c (print_internal_information): fix -halfdump
* file.c (loadHTMLstream): no DUMP_HALFEXTRA
* html.h: add HTML_INTERNAL, HTML_N_INTERNAL,
HTML_SELECT_INT, HTML_N_SELECT_INT,
HTML_OPTION_INT, HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT
* html.c (ALST_TEXTAREA_INT): added
* html.c (ALST_SELECT_INT): added
* html.c: add <internal>, </internal>, <select_int>, </select_int>
<option_int>, <textarea_int>, </textarea_int>
* main.c (MAIN): delete -halfdump_extra
dont output <pre> by -halfdump
* table.c (feed_table_tag): process_{form,select}() fix
add case HTML_INTERNAL, HTML_N_INTERNAL,
HTML_SELECT_INT, HTML_N_SELECT_INT,
HTML_OPTION_INT, HTML_TEXTAREA_INT, HTML_N_TEXTAREA_INT,
* tagtable.tab: add internal, /internal, select_int, /select_int
option_int, textarea_int, /textarea_int
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | main.c | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.78 2002/02/03 06:12:41 ukai Exp $ */ +/* $Id: main.c,v 1.79 2002/02/05 12:31:27 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -562,8 +562,6 @@ MAIN(int argc, char **argv, char **envp) w3m_dump = (DUMP_HEAD | DUMP_SOURCE | DUMP_EXTRA); else if (!strcmp("-halfdump", argv[i])) w3m_dump = DUMP_HALFDUMP; - else if (!strcmp("-halfdump_extra", argv[i])) - w3m_dump = DUMP_HALFDUMP | DUMP_HALFEXTRA; else if (!strcmp("-halfload", argv[i])) { w3m_dump = 0; w3m_halfload = TRUE; @@ -745,8 +743,6 @@ MAIN(int argc, char **argv, char **envp) orig_GC_warn_proc = GC_set_warn_proc(wrap_GC_warn_proc); err_msg = Strnew(); if (load_argc == 0) { - if (w3m_halfdump) - printf("<pre>\n"); /* no URL specified */ if (!isatty(0)) { redin = newFileStream(fdopen(dup(0), "rb"), (void (*)())pclose); @@ -810,8 +806,6 @@ MAIN(int argc, char **argv, char **envp) if (i >= 0) { SearchHeader = search_header; DefaultType = default_type; - if (w3m_halfdump) - printf("<pre>\n"); if (w3m_dump == DUMP_HEAD) { request = New(FormList); request->method = FORM_METHOD_HEAD; @@ -892,9 +886,6 @@ MAIN(int argc, char **argv, char **envp) rFrame(); saveBuffer(Currentbuf, stdout); } - if (w3m_halfdump) - printf("</pre><title>%s</title>\n", - html_quote(newbuf->buffername)); } else { if (Currentbuf->frameset != NULL && RenderFrame) |