From owner-cvs-src@FreeBSD.ORG Thu Feb 12 08:25:13 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A9BD16A4CE; Thu, 12 Feb 2004 08:25:13 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3616543D1F; Thu, 12 Feb 2004 08:25:13 -0800 (PST) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i1CGPDGe020438; Thu, 12 Feb 2004 08:25:13 -0800 (PST) (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i1CGPCHv020433; Thu, 12 Feb 2004 08:25:12 -0800 (PST) (envelope-from bde) Message-Id: <200402121625.i1CGPCHv020433@repoman.freebsd.org> From: Bruce Evans Date: Thu, 12 Feb 2004 08:25:12 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/indent indent.1 io.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2004 16:25:13 -0000 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