]> granicus.if.org Git - docbook-dsssl/commitdiff
2003-11-06 Tim Waugh <twaugh@redhat.com>
authorTim Waugh <twaugh@redhat.com>
Thu, 6 Nov 2003 18:32:23 +0000 (18:32 +0000)
committerTim Waugh <twaugh@redhat.com>
Thu, 6 Nov 2003 18:32:23 +0000 (18:32 +0000)
        * lists.xsl: Normalize space in itemizedlist/listitem.
        * synop.xsl: Likewise.

xsl/manpages/lists.xsl
xsl/manpages/synop.xsl

index 39f19b99e5cec03f341e1fb0cd1e08624dd735a2..ad4c8262f4c67fb59b4d6149df11e6975ed5b54e 100644 (file)
 
 <xsl:template match="itemizedlist/listitem">
   <xsl:text>\(bu&#10;</xsl:text>
-  <xsl:apply-templates mode="list"/>
+  <xsl:variable name="content">
+    <xsl:apply-templates mode="list"/>
+  </xsl:variable>
+  <xsl:value-of select="normalize-space($content)"/>
   <xsl:if test="position()!=last()">
     <xsl:text>.TP&#10;</xsl:text>
   </xsl:if>
index 1192dc60999388c2de14ca347d9c3340c7b75063..977866969ba7e31de654db70824a6c41a6a18909 100644 (file)
 <!-- replaces all spaces within the funcdef/paramdef with non-breaking
      spaces -->
 <xsl:template match="paramdef|funcdef">
-  <xsl:variable name="content">
+  <xsl:variable name="rcontent">
     <xsl:apply-templates select="*|./*|text()"/>
   </xsl:variable>
+  <xsl:variable name="content">
+    <xsl:value-of select="normalize-space($rcontent)"/>
+  </xsl:variable>
   <xsl:call-template name="replace-string">
     <xsl:with-param name="content" select="$content"/>
     <xsl:with-param name="replace" select="' '"/>