diff options
Diffstat (limited to 'docs/manual/style/xsl/quickreference.xsl')
-rw-r--r-- | docs/manual/style/xsl/quickreference.xsl | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/docs/manual/style/xsl/quickreference.xsl b/docs/manual/style/xsl/quickreference.xsl index 51799dfc88..4e79a43f76 100644 --- a/docs/manual/style/xsl/quickreference.xsl +++ b/docs/manual/style/xsl/quickreference.xsl @@ -49,7 +49,7 @@ <xsl:with-param name="directives" select="$directives"/> </xsl:call-template> </xsl:variable> - + <table id="legend"> <xsl:text> @@ -110,7 +110,7 @@ </body> </html> - </xsl:template> + </xsl:template> <!-- --> @@ -145,8 +145,20 @@ </td> <td> - <xsl:value-of select="substring(substring-after(concat(default,' '),name),1,20)"/> - <xsl:if test="string-length(substring-after(concat(default,' '),name)) > 20"> + <xsl:variable name="default"> + <xsl:choose> + <xsl:when test="count(default[count(br) > 0]) > 0"> + <xsl:value-of select="default/child::node()[count(preceding-sibling::*) = 0]"/> + </xsl:when> + <xsl:otherwise> + <xsl:value-of select="default"/> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + + <xsl:value-of select="substring(substring-after(concat($default,' '),name),1,20)"/> + <xsl:if test="string-length(substring-after(concat($default,' '),name)) > 20 + or count(default[count(br) > 0]) > 0"> <xsl:text> +</xsl:text> </xsl:if> </td> @@ -202,4 +214,4 @@ </xsl:template> <!-- /reference-of-letter --> -</xsl:stylesheet> +</xsl:stylesheet>
\ No newline at end of file |