cvs commit: src/usr.bin/indent indent.1 io.c
Bruce Evans
bde at freebsd.org
Sat Feb 14 01:19:21 PST 2004
bde 2004/02/12 08:25:12 PST
FreeBSD src repository
Modified files:
usr.bin/indent indent.1 io.c
Log:
Only indent once for continuation lines when not lining up with
parentheses if the continuation indent is exactly half of the main
indent. Indenting one contination indent for every level of
parentheses gives bad results in most cases and is not what is done
in about 90% of properly hand-formatted KNF code (sys/kern/*.c,
nvi/common/*.c). The main advantage of the non-default KNF options
-nlp -ci4 is that continuation lines don't accidentally line up with
the next main indentation level or march to the right, and increasing
their indentation defeats this.
This behaviour change is limited to when the continuation indent is
exactly half of the main indent to avoid adding yet another option.
Revision Changes Path
1.17 +3 -2 src/usr.bin/indent/indent.1
1.13 +2 -1 src/usr.bin/indent/io.c
_______________________________________________
cvs-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe at freebsd.org"
More information about the cvs-src
mailing list