Hmm, this is curious. I wonder why we get different results. Here is the
nroff markup I get with 1.74.3:
.SH "DESCRIPTION"
.sp
This is a paragraph, followed by a list:
.sp
.RS 4
.ie n \{\
\h'-04' 1.\h'+01'\c
.\}
.el \{\
.sp -1
.IP " 1." 4.2
.\}
One
.RE
.sp
.RS 4
.ie n \{\
\h'-04' 2.\h'+01'\c
.\}
.el \{\
.sp -1
.IP " 2." 4.2
.\}
Two
.RE
.sp
.RS 4
.ie n \{\
\h'-04' 3.\h'+01'\c
.\}
.el \{\
.sp -1
.IP " 3." 4.2
.\}
Three
.RE
.sp
A new paragraph\&.
and here is the formatted output from groff 's "nroff -man" command:
This is a paragraph, followed by a list:
1. One
2. Two
3. Three
A new paragraph.
Do you get the same nroff markup that I got?
Oddly enough, when I apply your patch to 1.73.4 lists.xsl, I get the same
nroff markup! Turns out that is because there is a process inside
"other.xsl" that merges double line-feeds before a period:
<!-- * squeeze multiple newlines before a roff request -->
<substitution oldstring=" ." newstring=" ."/>
That's why I get the same results with and without your patch. Are you
using any customization of the manpage templates? If not, then perhaps this
is an OS thing regarding line-feeds. I'm using cygwin on a Windows box.
Bob Stayton
Sagehill Enterprises
[email protected]
----- Original Message -----
From: "Jeff King" <[email protected]>
To: "Bob Stayton" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, March 31, 2009 9:26 AM
Subject: Re: [docbook-apps] docbook-xsl spacing with manpage orderedlist
On Tue, Mar 31, 2009 at 09:07:41AM -0700, Bob Stayton wrote:
This was an issue when simpara was used, and it has been fixed. Try
version 1.74.3.
I still see the problem with 1.74.3. I can "fix" it with the patch
below, but I would not be surprised if that is breaking some other
situation.
diff --git a/manpages/lists.xsl b/manpages/lists.xsl
index a43e833..9e4fa10 100644
--- a/manpages/lists.xsl
+++ b/manpages/lists.xsl
@@ -173,7 +173,6 @@
</xsl:template>
<xsl:template match="orderedlist/listitem|procedure/step">
- <xsl:text> </xsl:text>
<xsl:text>.sp</xsl:text>
<xsl:text> </xsl:text>
<xsl:text>.RS</xsl:text>
@@ -233,6 +232,7 @@
<xsl:apply-templates/>
<xsl:text>.RE </xsl:text>
<xsl:text> </xsl:text>
+ <xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="itemizedlist|orderedlist|procedure">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]