]> granicus.if.org Git - docbook-dsssl/commitdiff
Segmentedlist output, adjusted width of table cells.
authorMichael Smith <xmldoc@users.sourceforge.net>
Sat, 11 Mar 2006 19:25:49 +0000 (19:25 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Sat, 11 Mar 2006 19:25:49 +0000 (19:25 +0000)
Problem:: Content of table cells in segmentedlist output wraps
even when there's still plenty of room left for text on the
current line. Cause:: Behavior described is by design in tbl(1).
It effectively sets the maximum width of cells to 1/3 of the
current line length. Not sure why... Fix:: Added called to .ll
request that causes line length to temporarily be increased to
1.62 times the current line length before table output of each
segmentedlist, then restore it back to previous width after
output of the table markup. I suppose there are probably some
cases where that will produce some undesirable results. But for
now, it gives good output for all test cases I've tried.

xsl/manpages/lists.xsl

index 5d0d6204a789282d78fbe644b14eedbd4941d047..9fc18faef104aa13efac559a9250472e0106effd 100644 (file)
     <xsl:apply-templates mode="bold" select="title"/>
     <xsl:text>&#10;</xsl:text>
   </xsl:if>
+  <xsl:text>.\" line length increase to cope w/ tbl weirdness&#10;</xsl:text>
+  <xsl:text>.ll +(\n(LLu * 62u / 100u)&#10;</xsl:text>
   <!-- * .TS = "Table Start" -->
   <xsl:text>.TS&#10;</xsl:text>
     <!-- * first output the table "format" spec, which tells tbl(1) how -->
   <xsl:apply-templates/>
   <!-- * .TE = "Table End" -->
   <xsl:text>.TE&#10;</xsl:text>
+  <xsl:text>.\" line length decrease back to previous value&#10;</xsl:text>
+  <xsl:text>.ll -(\n(LLu * 62u / 100u)&#10;</xsl:text>
   <!-- * put a blank line of space below the table -->
   <xsl:text>.sp&#10;</xsl:text>
 </xsl:template>