fix indent
This commit is contained in:
1 parent
8f470bfe83
commit
98d6d29e7b
2 files changed
+14
-12
No files matched your search
@@ -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,7 +708,8 @@ 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")))
|
||||
strcasecmp(checked, "off")
|
||||
|| !strcasecmp(checked, "no")))
|
||||
new->checked = 0;
|
||||
else
|
||||
new->checked = 1;
|
||||
@@ -717,14 +718,14 @@ add_pre_form_item(struct pre_form *pf, struct pre_form_item *prev, int type,
|
||||
}
|
||||
|
||||
/*
|
||||
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)
|
||||
@@ -804,7 +805,8 @@ 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)))
|
||||
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)
|
||||
|
||||
Reference in new issue
Block a user