aboutsummaryrefslogtreecommitdiffstats
path: root/form.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-11-05 16:43:09 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-11-05 16:43:09 +0000
commit98d6d29e7ba954b8831e5b0f9a701de654f47051 (patch)
treeba547371f75c6601233c8cba20f48bd7361819f6 /form.c
parent* doc-jp/README.pre_form: added [w3m-dev 03373] (diff)
downloadw3m-98d6d29e7ba954b8831e5b0f9a701de654f47051.tar.gz
w3m-98d6d29e7ba954b8831e5b0f9a701de654f47051.zip
fix indent
Diffstat (limited to 'form.c')
-rw-r--r--form.c36
1 files changed, 19 insertions, 17 deletions
diff --git a/form.c b/form.c
index bd0922e..ed34fa1 100644
--- a/form.c
+++ b/form.c
@@ -1,4 +1,4 @@
-/* $Id: form.c,v 1.16 2002/11/05 16:03:14 ukai Exp $ */
+/* $Id: form.c,v 1.17 2002/11/05 16:43:09 ukai Exp $ */
/*
* HTML forms
*/
@@ -708,23 +708,24 @@ add_pre_form_item(struct pre_form *pf, struct pre_form_item *prev, int type,
new->name = name;
new->value = value;
if (checked && *checked && (!strcmp(checked, "0") ||
- strcasecmp(checked, "off") || !strcasecmp(checked, "no")))
- new->checked = 0;
+ strcasecmp(checked, "off")
+ || !strcasecmp(checked, "no")))
+ new->checked = 0;
else
- new->checked = 1;
+ new->checked = 1;
new->next = NULL;
return new;
}
/*
-url <url> [<action>]
-text <name> <value>
-file <name> <value>
-passwd <name> <value>
-checkbox <name> <value> [<checked>]
-radio <name> <value>
-submit [<name>]
-*/
+ * url <url> [<action>]
+ * text <name> <value>
+ * file <name> <value>
+ * passwd <name> <value>
+ * checkbox <name> <value> [<checked>]
+ * radio <name> <value>
+ * submit [<name>]
+ */
void
loadPreForm(void)
@@ -796,7 +797,7 @@ preFormUpdateBuffer(Buffer *buf)
if (!buf || !buf->formitem || !PreForm)
return;
-
+
for (pf = PreForm; pf; pf = pf->next) {
if (Strcmp(parsedURL2Str(&buf->currentURL), parsedURL2Str(&pf->url)))
continue;
@@ -804,15 +805,16 @@ preFormUpdateBuffer(Buffer *buf)
a = &buf->formitem->anchors[i];
fi = (FormItemList *)a->url;
fl = fi->parent;
- if (pf->action && (!fl->action || Strcmp_charp(fl->action, pf->action)))
- continue;
+ if (pf->action
+ && (!fl->action || Strcmp_charp(fl->action, pf->action)))
+ continue;
for (pi = pf->item; pi; pi = pi->next) {
if (pi->type != fi->type)
continue;
if (pi->type == FORM_INPUT_SUBMIT) {
if (!pi->name || !*pi->name ||
(fi->name && !Strcmp_charp(fi->name, pi->name)))
- buf->submit = a;
+ buf->submit = a;
continue;
}
if (!pi->name || !fi->name || Strcmp_charp(fi->name, pi->name))
@@ -833,7 +835,7 @@ preFormUpdateBuffer(Buffer *buf)
break;
case FORM_INPUT_RADIO:
if (pi->value && fi->value &&
- !Strcmp_charp(fi->value, pi->value))
+ !Strcmp_charp(fi->value, pi->value))
formRecheckRadio(a, buf, fi);
break;
}