Date: Thu, 12 Feb 2004 08:25:12 -0800 (PST) From: Bruce Evans <bde@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/indent indent.1 io.c Message-ID: <200402121625.i1CGPCHv020433@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402121625.i1CGPCHv020433>