]> granicus.if.org Git - docbook-dsssl/commit
Problem::
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Oct 2005 05:28:49 +0000 (05:28 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Oct 2005 05:28:49 +0000 (05:28 +0000)
commit63a0d100754035fe3571519555fea74044ae9028
treec0f1cfeb87c6f9b087ed70086ce71a4c24efcb9f
parentdeadf53e1d2fc05bb71feec10ff45b73e310e50f
Problem::
Extra space added before Arg output Cmdsynopsis in some cases
where the Arg contents appear at the beginning of a line.

  bdmond [-s, --start]
          [-k, --stop]
          [-h, --help]
          [-V, --version]

Cause::
Some other fix made around the time of v1.68.0 introduced a
regression in behavior for cases where an Arg is preceded by an
Sbr. The Sbr produces a line break as expected, but the line break
is followed by a space and then the contents of the following Arg.

Fix::
The code for processing Args now checks to see if the first
preceding sibling of the Arg is an Sbr. If so, it does not output
the additional space; otherwise, it outputs the space.

-  <xsl:if test="position()>1"><xsl:value-of select="$sepchar"/></xsl:if>
+  <xsl:if test="position()>1 and
+                not(preceding-sibling::*[1][self::sbr])"
+          ><xsl:value-of select="$sepchar"/></xsl:if>

Closes #1313481. Thanks to Costin Stroie for reporting the problem
and pointing out where the cause was in the code.
xsl/manpages/synop.xsl