Fixed a problem with boostbook printing an extra colon in the class

synopsis, when a class inherits from a single base class and it's too 
long to fit on one line.


[SVN r40048]
This commit is contained in:
Frank Mori Hess 2007-10-15 13:27:50 +00:00
parent caeaebade4
commit ebff982ef1

View File

@ -546,17 +546,17 @@ Unknown type element "<xsl:value-of select="local-name(.)"/>" in type.display.na
<xsl:when test="$single-line-candidate and
(string-length($single-line) + $indentation + 3
&lt; $max-columns)">
<xsl:text> : </xsl:text>
<xsl:call-template name="print.base.classes.single"/>
<xsl:text> {</xsl:text>
</xsl:when>
<xsl:when test="$single-line-candidate and
(string-length($single-line) + $base-indentation + 5
(string-length($single-line) + $base-indentation + 2
&lt; $max-columns)">
<xsl:text>&#10;</xsl:text>
<xsl:text> :&#10;</xsl:text>
<xsl:call-template name="indent">
<xsl:with-param name="indentation" select="$base-indentation"/>
<xsl:with-param name="indentation" select="$base-indentation + 2"/>
</xsl:call-template>
<xsl:text> : </xsl:text>
<xsl:call-template name="print.base.classes.single"/>
<xsl:text>&#10;</xsl:text>
<xsl:call-template name="indent">
@ -582,7 +582,6 @@ Unknown type element "<xsl:value-of select="local-name(.)"/>" in type.display.na
<xsl:template match="inherit">
<xsl:choose>
<xsl:when test="position()=1">
<xsl:text> : </xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>, </xsl:text>