]> granicus.if.org Git - docbook-dsssl/commitdiff
Only escape option spaces once when args are nested.
authorTim Waugh <twaugh@redhat.com>
Fri, 23 May 2003 16:33:08 +0000 (16:33 +0000)
committerTim Waugh <twaugh@redhat.com>
Fri, 23 May 2003 16:33:08 +0000 (16:33 +0000)
xsl/manpages/synop.xsl

index 26af0a059c8383f24ce69e59f668326df5dcefc6..1192dc60999388c2de14ca347d9c3340c7b75063 100644 (file)
@@ -43,7 +43,7 @@
     <xsl:apply-templates/>
   </xsl:variable>
   <xsl:choose>
-    <xsl:when test="local-name(.) = 'arg'">
+    <xsl:when test="local-name(.) = 'arg' and not(ancestor::arg)">
       <!-- Prevent breaking up an argument by wrapping it -->
       <xsl:call-template name="replace-string">
         <xsl:with-param name="content" select="normalize-space($arg)"/>