w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 97303a1dd05cf8f1f47c4a3fd0ba0d1b519a3a14
parent 85f952afd2b1285a81f28bcfd4abd1e562cb593f
Author: ukai <ukai>
Date:   Tue,  5 Nov 2002 16:43:09 +0000

fix indent

Diffstat:
Mform.c | 34++++++++++++++++++----------------
Mtable.c | 4++--
2 files changed, 20 insertions(+), 18 deletions(-)

diff --git a/form.c b/form.c @@ -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; } diff --git a/table.c b/table.c @@ -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]; }