aboutsummaryrefslogtreecommitdiff
path: root/toc
diff options
context:
space:
mode:
Diffstat (limited to 'toc')
-rw-r--r--toc/README.t6
-rw-r--r--toc/example.t6
-rw-r--r--toc/toc.13
3 files changed, 7 insertions, 8 deletions
diff --git a/toc/README.t b/toc/README.t
index 62cebaa..ccb06f3 100644
--- a/toc/README.t
+++ b/toc/README.t
@@ -238,14 +238,12 @@ Table of contents
\\$*
\&. br
\&. ft
-\&. te .the \\n% \\$*
+\&. te .the \\$*\\t\\n%
\&..
\&.de the
-\&. nr _ \\$1
-\&. shift
\&. ta 0 \\n(.luR
\&. tc .
-\\$* \\n_
+\\$*
\&. tc
\&. br
\&..
diff --git a/toc/example.t b/toc/example.t
index 167c105..8b4e536 100644
--- a/toc/example.t
+++ b/toc/example.t
@@ -10,15 +10,13 @@
. ft
. ps
. vs
-. te .T \\n% \\$*
+. te .T \\$* \\n%
..
.
.de T
-. nr _ \\$1
-. shift
. ta 0 \\n(.luR
. tc .
-\\$*\t\\n_
+\\$*
. tc
. br
..
diff --git a/toc/toc.1 b/toc/toc.1
index dbee298..413a206 100644
--- a/toc/toc.1
+++ b/toc/toc.1
@@ -19,6 +19,9 @@ from the end of the document to the beginning.
As arguments, it takes a
.Xr troff 1
command line, which is evaluated as a shell command on each pass.
+If the command line is a pipeline,
+.Xr troff 1
+must be the final command.
.Pp
.Nm
runs