Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Feb 2012 01:09:10 GMT
From:      Jeremy Huddleston <jeremyhu@apple.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   docs/165009: indent(1) man page fix
Message-ID:  <201202120109.q1C19A20075710@red.freebsd.org>
Resent-Message-ID: <201202120110.q1C1AC0u013042@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         165009
>Category:       docs
>Synopsis:       indent(1) man page fix
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 12 01:10:12 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Jeremy Huddleston
>Release:        trunk
>Organization:
Apple Inc
>Environment:
NA
>Description:
-bacc is not described in FreeBSD's indent(1) man page, but it is supported by the tool.  This report contains a patch to indent.1 from Apple's indent.1 which was in turn from NetBSD's indent.1
>How-To-Repeat:

>Fix:
Index: indent.1
===================================================================
--- indent.1	(revision 75832)
+++ indent.1	(revision 75833)
@@ -43,6 +43,7 @@
 .Sh SYNOPSIS
 .Nm
 .Op Ar input_file Op Ar output_file
+.Op Fl bacc | Fl nbacc
 .Op Fl bad | Fl nbad
 .Op Fl bap | Fl nbap
 .Bk -words
@@ -125,6 +126,15 @@
 The options listed below control the formatting style imposed by
 .Nm .
 .Bl -tag -width Op
+.It Fl bacc , nbacc
+If
+.Fl bacc
+is specified, a blank line is forced around every conditional
+compilation block.
+For example, in front of every #ifdef and after every #endif.
+Other blank lines surrounding such blocks will be swallowed.
+Default:
+.Fl nbacc  .
 .It Fl bad , nbad
 If
 .Fl bad


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201202120109.q1C19A20075710>