fix indent

This commit is contained in:
Fumitoshi UKAI committed 2002-11-05 16:43:09 +00:00
1 parent 8f470bfe83
commit 98d6d29e7b
2 files changed
+13 -11

No files matched your search

+12 -10
View File
@@ -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 * 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->name = name;
new->value = value; new->value = value;
if (checked && *checked && (!strcmp(checked, "0") || if (checked && *checked && (!strcmp(checked, "0") ||
strcasecmp(checked, "off") || !strcasecmp(checked, "no"))) strcasecmp(checked, "off")
|| !strcasecmp(checked, "no")))
new->checked = 0; new->checked = 0;
else else
new->checked = 1; new->checked = 1;
@@ -717,13 +718,13 @@ add_pre_form_item(struct pre_form *pf, struct pre_form_item *prev, int type,
} }
/* /*
url <url> [<action>] * url <url> [<action>]
text <name> <value> * text <name> <value>
file <name> <value> * file <name> <value>
passwd <name> <value> * passwd <name> <value>
checkbox <name> <value> [<checked>] * checkbox <name> <value> [<checked>]
radio <name> <value> * radio <name> <value>
submit [<name>] * submit [<name>]
*/ */
void void
@@ -804,7 +805,8 @@ preFormUpdateBuffer(Buffer *buf)
a = &buf->formitem->anchors[i]; a = &buf->formitem->anchors[i];
fi = (FormItemList *)a->url; fi = (FormItemList *)a->url;
fl = fi->parent; 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; continue;
for (pi = pf->item; pi; pi = pi->next) { for (pi = pf->item; pi; pi = pi->next) {
if (pi->type != fi->type) if (pi->type != fi->type)
+1 -1
View File
@@ -1,4 +1,4 @@
/* $Id: table.c,v 1.28 2002/11/05 15:45:53 ukai Exp $ */ /* $Id: table.c,v 1.29 2002/11/05 16:43:10 ukai Exp $ */
/* /*
* HTML table * HTML table
*/ */