Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 1999 21:21:30 +0400
From:      Alexey Zelkin <phantom@cris.net>
To:        Mike Pritchard <mpp@FreeBSD.org>
Cc:        freebsd-doc@FreeBSD.org
Subject:   Re: Propose mdoc fix regarding ERRORS section
Message-ID:  <19990828212130.A6853@scorpion.crimea.ua>
In-Reply-To: <199908280729.CAA93164@mpp.pro-ns.net>

index | next in thread | previous in thread | raw e-mail

[-hackers removed from Cc list]

hi,

On Sat, Aug 28, 1999 at 02:29:08AM -0500, Mike Pritchard wrote:
> >Category:       docs
> >Synopsis:       src/lib/libc/sys/*.2 misc patch pack
> - first column in most ERROR lists is too narrow. Normalize their width.

> Man pages can also specify:
> 
> .Bl -tag -width Er
> 
> Which will reserve enough space for the errno name based on what
> width the Er macro specifies.  Right now it doesn't allocate enough
> width to contain our largest errno's.  
> 
> I propose that we fix mdoc to allocate enough width when the second
> form is specified, and then change all of the man pages to use that
> format in the ERRORS section.
I think second way is better. I am going to remake my patch.
As first step I did this patch. I used 15 because error name EADDRNOTAVAIL
is longest error name I've found. (yes, I know that length is
13, but we also need some space between columns) 

Index: doc-common
===================================================================
RCS file: /usr/local/CVSROOT/src/contrib/groff/tmac/doc-common,v
retrieving revision 1.15
diff -u -r1.15 doc-common
--- doc-common	1999/05/14 17:35:17	1.15
+++ doc-common	1999/08/28 19:20:31
@@ -68,7 +68,7 @@
 .nr Eo 12n
 .nr Eq 12n
 .nr Em 10n
-.nr Er 12n
+.nr Er 15n
 .nr Ev 15n
 .nr Ex 10n
 .nr Fa 12n

-- 
Sincerely Yours,   | phantom@crimea.edu      (primary)
Alexey Zelkin      | phantom@scorpion.crimea.ua (home)
                   | ICQ: #6196584,  FIDO: 2:460/12.26


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990828212130.A6853>