Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Apr 2000 08:18:33 -0700 (PDT)
From:      "Thomas D. Dean" <tomdean@ix.netcom.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/18233: man and nroff -mdoc produce extra blank lines.
Message-ID:  <200004261518.IAA10736@ix.netcom.com>

next in thread | raw e-mail | index | archive | help

>Number:         18233
>Category:       docs
>Synopsis:       man and nroff -mdoc produce extra blank lines.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 26 08:20:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Thomas D. Dean
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

	

>Description:
'man make' has extra (doubled) blank lines in it.  Several other
man pages have extra blank lines in them.  The template man page
with only .Sh and .Pp plus pain text [A-Za-z]* in it will contain
extra blank lines.  'nroff -man' and 'nroff -mdoc' both exhibit
the problem.


>How-To-Repeat:

The following script will produce a nroff source file that will
duplicate the problem.  'xx.sh > xx.1' followed by 'nroff -mdoc xx.1'
The output will have an extra blank line at line number 66.  Pipe
the output of nroff into 'grep -n ".*"' to see line numbers.
If the number of sections is increased from 10 to 30, lines
66, 132, 198, etc will be extra blank lines.  If xx.1 is placed in
the MANPATH, 'man xx' will produce the problem.

#! /bin/sh
# generate a man page which will have an extra blank line
cat <<EOF
.Dd DATE
.Os
.Dt XX 1
.Sh NAME
.Nm xx
.Nd This will produce blank line errors.
EOF
section=0
paragraph=0
while [ $section -lt 10 ]; do
    echo ".Sh Section Number ${section}"
    section=`expr ${section} + 1`
    n=0
    while [ $n -lt 3 ]; do
	echo "This is paragraph ${paragraph}."
	echo ".Pp"
	paragraph=`expr ${paragraph} + 1`
	n=`expr $n + 1`
    done
done

>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:


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




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