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
+22 -20

No files matched your search

+19 -17
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
*/
@@ -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;
}
+3 -3
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
*/
@@ -1542,7 +1542,7 @@ check_table_height(struct table *t)
cell.rowspan[cell.maxcell] = rowspan;
cell.height[cell.maxcell] = 0;
if (cell.maxcell > k) {
int ii;
int ii;
for (ii = k; ii < cell.maxcell; ii++)
cell.indexarray[ii + 1] = cell.indexarray[ii];
}
@@ -2659,7 +2659,7 @@ feed_table_tag(struct table *tbl, char *line, struct table_mode *mode,
cell->minimum_width[cell->maxcell] = 0;
cell->fixed_width[cell->maxcell] = 0;
if (cell->maxcell > k) {
int ii;
int ii;
for (ii = k; ii < cell->maxcell; ii++)
cell->index[ii + 1] = cell->index[ii];
}