summaryrefslogtreecommitdiff
path: root/usr.bin/tr
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2011-09-03 22:59:09 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2011-09-03 22:59:09 +0000
commit0451f3d56ea81c5bb90e2ad8622098dcbf5878cd (patch)
tree8104b89f5731d02def482049ba85b76933489f95 /usr.bin/tr
parent311bc18da7da07c9ba1304eecbf55db137005055 (diff)
make -column lists pretty again;
specifically, rewrite them to permit some markup in the column headers, and use "Ta" instead of literal tabs; mandoc does not currently match groff 100%, but a mandoc fix may be some time off, and we've gone enough releases with poorly formatting column lists. in some cases i have rewritten the lists as -tag, where -column made little sense.
Diffstat (limited to 'usr.bin/tr')
-rw-r--r--usr.bin/tr/tr.165
1 files changed, 42 insertions, 23 deletions
diff --git a/usr.bin/tr/tr.1 b/usr.bin/tr/tr.1
index 0c7216ca122..950c71ee508 100644
--- a/usr.bin/tr/tr.1
+++ b/usr.bin/tr/tr.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tr.1,v 1.18 2011/06/27 23:10:19 jmc Exp $
+.\" $OpenBSD: tr.1,v 1.19 2011/09/03 22:59:07 jmc Exp $
.\" $NetBSD: tr.1,v 1.5 1994/12/07 08:35:13 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -33,7 +33,7 @@
.\"
.\" @(#)tr.1 8.1 (Berkeley) 6/6/93
.\"
-.Dd $Mdocdate: June 27 2011 $
+.Dd $Mdocdate: September 3 2011 $
.Dt TR 1
.Os
.Sh NAME
@@ -143,14 +143,21 @@ the octal sequence to the full 3 octal digits.
A backslash followed by certain special characters maps to special
values.
.Pp
-.Bl -column "nn" "<alert character>"
-.It \ea <alert character>
-.It \eb <backspace>
-.It \ef <form-feed>
-.It \en <newline>
-.It \er <carriage return>
-.It \et <tab>
-.It \ev <vertical tab>
+.Bl -tag -width "nn" -offset indent -compact
+.It \ea
+<alert character>
+.It \eb
+<backspace>
+.It \ef
+<form-feed>
+.It \en
+<newline>
+.It \er
+<carriage return>
+.It \et
+<tab>
+.It \ev
+<vertical tab>
.El
.Pp
A backslash followed by any other character maps to that character.
@@ -160,19 +167,31 @@ Represents the range of characters between the range endpoints, inclusively.
Represents all characters belonging to the defined character class.
Class names are:
.Pp
-.Bl -column "xdigit" "<lower-case alphabetic characters>"
-.It alnum <alphanumeric characters>
-.It alpha <alphabetic characters>
-.It blank <blank characters>
-.It cntrl <control characters>
-.It digit <numeric characters>
-.It graph <graphic characters>
-.It lower <lower-case alphabetic characters>
-.It print <printable characters>
-.It punct <punctuation characters>
-.It space <space characters>
-.It upper <upper-case characters>
-.It xdigit <hexadecimal characters>
+.Bl -tag -width "xdigit" -offset indent -compact
+.It alnum
+<alphanumeric characters>
+.It alpha
+<alphabetic characters>
+.It blank
+<blank characters>
+.It cntrl
+<control characters>
+.It digit
+<numeric characters>
+.It graph
+<graphic characters>
+.It lower
+<lower-case alphabetic characters>
+.It print
+<printable characters>
+.It punct
+<punctuation characters>
+.It space
+<space characters>
+.It upper
+<upper-case characters>
+.It xdigit
+<hexadecimal characters>
.El
.Pp
.\" All classes may be used in