nnl = 1;
}
}
- if (fout) while (nnl--) putc('\n', fout);
+ if (fout) while (nnl--) putc('\n', fout); else nnl = 0;
}
goto end;
case '\n':
else if (fout) {
while (nnl) { putc('\n', fout); nnl--; }
putc(ch, fout);
- }
+ } else
+ nnl = 0;
f |= f_newline;
f &= ~(f_tab | f_warnspacetab | f_warntabs | f_warnspaces);
if (flags & F_TABIFY)
last = '\n';
break;
default:
- if (fout) while (nnl) { putc('\n', fout); nnl--; }
+ if (fout) while (nnl) { putc('\n', fout); nnl--; } else nnl = 0;
if (nwsp) {
if (flags & F_UNTABIFY) {
if (fout) for (; ohpos < hpos; ohpos++) putc(' ', fout);
-m Fix spaces followed by tabs in mid-line\n\
-t Tabify file completely\n\
-u Untabify file completely\n\
+ -v Report verbose messages\n\
-i[BKP] Modify files in place; leave FILEBKP as copy of old FILE\n\
", stdout);
exit(0);