L.S.

I'm unsure about the development process of the docbook xslt stylesheets, and whether they are actively maintained. In case they are:

Please find attached a patch for the conversion to manpage format. The patch is based on the docbook-xsl-1.79.2 stylesheets distribution.

Explanation:

Hunk 1 corrects a missing newline that caused the man program to not recognize 
a new table section.

Hunk 2 prevents that redundant white space, introduced into in an xml source document by the xml editor program[*], is copied verbatim into the text of a manpage table cell, thus compromising alignment of the text.

         [*] I'm using XMLmind XML Editor


Sincerely,

Erik Leunissen
--
--- tbl.xsl.orig	2018-02-19 22:22:59.000000000 +0100
+++ tbl.xsl.fix	2022-12-21 10:55:34.000000000 +0100
@@ -56,7 +56,7 @@
       
       <!-- * mark the start of the table -->
       <!-- * "TS" = "table start" -->
-      <xsl:text>.TS</xsl:text>
+      <xsl:text>&#10;.TS</xsl:text>
       <xsl:if test="thead and $tbl.running.header.from.thead">
         <!-- * H = "has header" -->
         <xsl:text> H</xsl:text>
@@ -216,7 +216,7 @@
         <!-- * the delimited contents are "text blocks" that roff -->
         <!-- * needs to process -->
         <xsl:text>T{&#10;</xsl:text>
-        <xsl:copy-of select="."/>
+        <xsl:copy-of select="normalize-space(.)"/>
         <xsl:text>&#10;T}</xsl:text>
       </xsl:otherwise>
     </xsl:choose>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to