summaryrefslogtreecommitdiff
path: root/usr.bin/less
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2003-07-14 09:11:27 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2003-07-14 09:11:27 +0000
commit5b9e4ae84e7f31fc73b14fa5833f1af68a81d28e (patch)
tree1609dc789dda04e2d3da596d6ab014e530aee9d6 /usr.bin/less
parent253facdcfc380c59f7a63d5a2c02cc48bc3f4d4a (diff)
- escape %{B,D,P} to prevent groff trying to expand them
- remove some unnecessary .Pp's
Diffstat (limited to 'usr.bin/less')
-rw-r--r--usr.bin/less/less.113
-rw-r--r--usr.bin/less/lesskey.15
2 files changed, 5 insertions, 13 deletions
diff --git a/usr.bin/less/less.1 b/usr.bin/less/less.1
index 3afbff3a524..a9c9ff70604 100644
--- a/usr.bin/less/less.1
+++ b/usr.bin/less/less.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: less.1,v 1.3 2003/06/10 09:12:10 jmc Exp $
+.\" $OpenBSD: less.1,v 1.4 2003/07/14 09:11:26 jmc Exp $
.\"
.\" Copyright (C) 2002 Mark Nudelman
.\"
@@ -513,7 +513,6 @@ For example, to separate a prompt value from any other options
with dollar sign between them:
.Pp
.Dl LESS="-Ps--More--$-C -e"
-.Pp
.Bl -tag -width XXXX
.It Fl ? | -help
This option displays a summary of the commands accepted by
@@ -985,7 +984,6 @@ a key does not exist on a particular keyboard.
Any of these special keys may be entered literally by preceding
it with the "literal" character, either ^V or ^A.
A backslash itself may also be entered literally by entering two backslashes.
-.Pp
.Bl -tag -width Ds
.It LEFTARROW [ ESC-h ]
Move the cursor one space to the left.
@@ -1285,7 +1283,6 @@ represent any real character set.)
.Pp
This table shows the value of LESSCHARDEF which is equivalent
to each of the possible values for LESSCHARSET:
-.Pp
.Bd -literal -offset indent
ascii 8bcccbcc18b95.b
dos 8bcccbcc12bc5b95.b.
@@ -1360,7 +1357,7 @@ an "m" means use the middle line,
a "b" means use the bottom line,
a "B" means use the line just after the bottom line,
and a "j" means use the "target" line, as specified by the -j option.
-.It %B
+.It \&%B
Replaced by the size of the current input file.
.It %c
Replaced by the column number of the text appearing in the first
@@ -1370,7 +1367,7 @@ Replaced by the page number of a line in the input file.
The line to be used is determined by the
.Ar X ,
as with the %b option.
-.It %D
+.It \&%D
Replaced by the number of pages in the input file,
or equivalently, the page number of the last line in the input file.
.It %E
@@ -1401,7 +1398,7 @@ Replaced by the percent into the current input file, based on byte offsets.
The line used is determined by the
.Ar X ,
as with the %b option.
-.It %P Ns Ar X
+.It \&%P Ns Ar X
Replaced by the percent into the current input file, based on line numbers.
The line used is determined by the
.Ar X ,
@@ -1501,7 +1498,6 @@ This is the default prompt.
For reference, here are the defaults for
the other two prompts (-m and -M respectively).
Each is broken into two lines here for readability only.
-.Pp
.Bd -literal -offset indent
?n?f%f\ .?m(file\ %i\ of\ %m)\ ..?e(END)\ ?x-\ Next\e:\ %x.:
?pB%pB\e%:byte\ %bB?s/%s...%t
@@ -1511,7 +1507,6 @@ Each is broken into two lines here for readability only.
.Ed
.Pp
And here is the default message produced by the = command:
-.Pp
.Bd -literal -offset indent
?f%f\ .?m(file\ %i\ of\ %m)\ .?ltlines\ %lt-%lb?L/%L.\ .
byte\ %bB?s/%s.\ ?e(END)\ :?pB%pB\e%..%t
diff --git a/usr.bin/less/lesskey.1 b/usr.bin/less/lesskey.1
index 4ff23bf23a2..9667ec141ff 100644
--- a/usr.bin/less/lesskey.1
+++ b/usr.bin/less/lesskey.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: lesskey.1,v 1.3 2003/06/10 09:12:10 jmc Exp $
+.\" $OpenBSD: lesskey.1,v 1.4 2003/07/14 09:11:26 jmc Exp $
.\"
.\" Copyright (C) 2000 Mark Nudelman
.\"
@@ -162,7 +162,6 @@ first character of the extra string is used as its exit status.
.Sh EXAMPLE
The following input file describes the set of
default command keys used by less:
-.Pp
.Bd -literal -offset indent
#command
\er forw-line
@@ -310,7 +309,6 @@ one per line as in the example below.
.Sh EXAMPLE
The following input file describes the set of
default line-editing keys used by less:
-.Pp
.Bd -literal -offset indent
#line-edit
\et forw-complete
@@ -359,7 +357,6 @@ is simply to have all less configuration information stored in one file.
.Sh EXAMPLE
The following input file sets the -i option whenever less is run,
and specifies the character set to be "latin1":
-.Pp
.Bd -literal -offset indent
#env
LESS = -i