[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
.At missing some arguments?
From: |
Colin Watson |
Subject: |
.At missing some arguments? |
Date: |
Thu, 22 Feb 2001 02:26:52 +0000 |
User-agent: |
Mutt/1.3.15i |
[Please preserve the Cc: to address@hidden, so that the
Debian bug tracking system gets a copy of your reply. Thanks!]
On Sun, 09 Jan 2000 at 21:51:31 -0500, Brian Servis wrote:
> The ash.1 man page has formating problems in the man page. Below is the
> man source and the resulting output. The 'version' number is missing in the
> first sentence. Sorry I don't speak groff to provide a patch.
>
> Source:
> .Sh HISTORY
> A
> .Nm
> command appeared in
> .At v1 .
> It was, however, unmaintainable so we wrote this one.
>
> Ouptut:
> HISTORY
> A sh command appeared in It was, however, unmaintainable so we
> wrote this one. ^^^^
I'm looking at groff 1.16 here, though I don't think it's changed in
1.16.1. tmac/groff_mdoc.samples.man says that .At accepts '[v1 .. v7 |
32v | V.1 | V.4]'. This disagrees with tmac/doc-syms, however. Firstly,
it can take 'V' as well ("AT&T System V UNIX"); secondly, doc-syms only
deals with v6 and v7 at the moment from the v1 .. v7 range.
I suggest the following patch (against 1.16 - I haven't had a chance to
look at CVS yet, sorry). It's about as subtle as a brick, I know, but it
seems to work. :)
--- groff-1.16.orig/tmac/doc-syms Thu Feb 22 02:03:48 2001
+++ groff-1.16/tmac/doc-syms Thu Feb 22 02:04:35 2001
@@ -126,6 +126,11 @@
.ds aa \&\f\\n(cF\s\\n(cZ
.if \\n(.$==2 \{\
. if "\\$1"32v" \&Version 32V \\*(tNAT&T UNIX\\*(aa\\$2
+. if "\\$1"v1" \&Version 1 \\*(tNAT&T UNIX\\*(aa\\$2
+. if "\\$1"v2" \&Version 2 \\*(tNAT&T UNIX\\*(aa\\$2
+. if "\\$1"v3" \&Version 3 \\*(tNAT&T UNIX\\*(aa\\$2
+. if "\\$1"v4" \&Version 4 \\*(tNAT&T UNIX\\*(aa\\$2
+. if "\\$1"v5" \&Version 5 \\*(tNAT&T UNIX\\*(aa\\$2
. if "\\$1"v6" \&Version 6 \\*(tNAT&T UNIX\\*(aa\\$2
. if "\\$1"v7" \&Version 7 \\*(tNAT&T UNIX\\*(aa\\$2
. if "\\$1"V" \&\\*(tNAT&T\\*(aa System V \\*(tNUNIX\\*(aa\\$2
@@ -134,6 +139,11 @@
.\}
.if \\n(.$==1 \{\
. if "\\$1"32v" \&Version 32V \\*(tNAT&T UNIX\\*(aa
+. if "\\$1"v1" \&Version 1 \\*(tNAT&T UNIX\\*(aa
+. if "\\$1"v2" \&Version 2 \\*(tNAT&T UNIX\\*(aa
+. if "\\$1"v3" \&Version 3 \\*(tNAT&T UNIX\\*(aa
+. if "\\$1"v4" \&Version 4 \\*(tNAT&T UNIX\\*(aa
+. if "\\$1"v5" \&Version 5 \\*(tNAT&T UNIX\\*(aa
. if "\\$1"v6" \&Version 6 \\*(tNAT&T UNIX\\*(aa
. if "\\$1"v7" \&Version 7 \\*(tNAT&T UNIX\\*(aa
. if "\\$1"V" \&\\*(tNAT&T\\*(aa System V \\*(tNUNIX\\*(aa
--- groff-1.16.orig/tmac/groff_mdoc.samples.man Thu Feb 22 02:03:59 2001
+++ groff-1.16/tmac/groff_mdoc.samples.man Thu Feb 22 02:04:55 2001
@@ -1376,7 +1376,7 @@
.Sh GENERAL TEXT DOMAIN
.Ss AT&T Macro
.Bd -literal -offset indent -compact
-Usage: .At [v1 .. v7 | 32v | V.1 | V.4] ... \*(Pu
+Usage: .At [v1 .. v7 | 32v | V | V.1 | V.4] ... \*(Pu
.Ed
.Bl -tag -width ".At v6 ) ," -compact -offset 14n
.It Li ".At"
Thanks,
--
Colin Watson address@hidden
- .At missing some arguments?,
Colin Watson <=