summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-11-10 17:46:15 +0000
committerru <ru@FreeBSD.org>2000-11-10 17:46:15 +0000
commita6f5d950d860b642619fd71c1efc1875f906cc17 (patch)
treed290d38e2fe5b5c638aa4cd22f5612eb6b8cd6de /usr.bin/indent
parent48c9ea08a6fa4c9c3d612d66b001208c85107546 (diff)
downloadFreeBSD-src-a6f5d950d860b642619fd71c1efc1875f906cc17.zip
FreeBSD-src-a6f5d950d860b642619fd71c1efc1875f906cc17.tar.gz
Avoid use of direct troff requests in mdoc(7) manual pages.
Diffstat (limited to 'usr.bin/indent')
-rw-r--r--usr.bin/indent/indent.17
1 files changed, 0 insertions, 7 deletions
diff --git a/usr.bin/indent/indent.1 b/usr.bin/indent/indent.1
index b7af9b4..b75fd78 100644
--- a/usr.bin/indent/indent.1
+++ b/usr.bin/indent/indent.1
@@ -143,7 +143,6 @@ turns off this option. Default:
Specifying
.Fl \&bl
lines-up compound statements like this:
-.ne 4
.Bd -literal -offset indent
if (...)
{
@@ -154,7 +153,6 @@ if (...)
Specifying
.Fl \&br
(the default) makes them look like this:
-.ne 3
.Bd -literal -offset indent
if (...) {
code
@@ -170,7 +168,6 @@ is for these comments to start in the same column as those on code.
Enables (disables) the placement of comment delimiters on blank lines. With
this option enabled, comments look like this:
.Bd -literal -offset indent
-.ne 3
/*
* this is a comment
*/
@@ -263,13 +260,11 @@ will be lined up to start at the character position just after the left
paren. For example, here is how a piece of continued code looks with
.Fl nlp
in effect:
-.ne 2
.Bd -literal -offset indent
p1 = first_procedure(second_procedure(p2, p3),
\ \ third_procedure(p4, p5));
.Ed
.Pp
-.ne 5
With
.Fl lp
in effect (the default) the code looks somewhat clearer:
@@ -278,7 +273,6 @@ p1\ =\ first_procedure(second_procedure(p2,\ p3),
\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ third_procedure(p4,\ p5));
.Ed
.Pp
-.ne 5
Inserting two more newlines we get:
.Bd -literal -offset indent
p1\ =\ first_procedure(second_procedure(p2,
@@ -444,7 +438,6 @@ command appeared in
has even more switches than
.Xr ls 1 .
.Pp
-.ne 5
A common mistake that often causes grief is typing:
.Pp
.Dl indent *.c
OpenPOWER on IntegriCloud