".It Xo" ... generates improper output on groff 1.18.1

Giorgos Keramidas keramida at FreeBSD.org
Tue May 13 07:29:11 UTC 2003


On 2003-05-12 23:42, horikawa at jp.freebsd.org wrote:
>
> But, I am afraid you will see "warning: missing closing delimiter"
> if you have:
> 	.Bl -tag -width ".Em cyl , sector No and Em head"
> instead of:
> 	.Bl -tag
>
> As I did not have a chance to reinstall a recent -current, I installed
> groff 1.19 and got the same warning when I format fdisk(8).
>
> Can you format fdisk(8) without warning using groff 1.19?

Hmmm.  Good point.  No, it issues a warning:

: $ zcat /usr/share/man/man8/fdisk.8.gz | groff -z -ww -mandoc
: <standard input>:195: warning: missing closing delimiter
: <standard input>:204: warning: missing closing delimiter

This patch fixes the warnings by putting all the arguments of .It macros
on the same line:

<<<<<
Index: fdisk.8
===================================================================
RCS file: /home/ncvs/src/sbin/fdisk/fdisk.8,v
retrieving revision 1.34
diff -u -r1.34 fdisk.8
--- fdisk.8     21 Aug 2002 18:10:07 -0000      1.34
+++ fdisk.8     13 May 2003 07:25:06 -0000
@@ -188,20 +188,12 @@
 .Fx
 reserves the
 magic number 165 decimal (A5 in hex).
-.It Xo
-.Em start
-and
-.Em size
-.Xc
+.It Xo Em start No and Em size Xc
 fields provide the start address
 and size of a slice in sectors.
 .It Em "flag 80"
 specifies that this is the active slice.
-.It Xo
-.Em cyl , sector
-and
-.Em head
-.Xc
+.It Xo Em cyl , sector No and Em head Xc
 fields are used to specify the beginning and end addresses of the slice.
 .El
 .Pp
>>>>>



More information about the freebsd-doc mailing list