aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Thorsen <[email protected]>2016-06-01 14:46:41 +0200
committerLars Thorsen <[email protected]>2016-06-01 14:46:41 +0200
commitd46e634b1c4ab0d88597c7bdff69a646a54f4477 (patch)
tree261fd43c21432bd1612f55e6637cefc27006fdaf
parent9cbdf29184f4dd54c0b332c153809c0cfa9dbd69 (diff)
parent460135312809eb3fb4d34b35455601c078903404 (diff)
downloadotp-d46e634b1c4ab0d88597c7bdff69a646a54f4477.tar.gz
otp-d46e634b1c4ab0d88597c7bdff69a646a54f4477.tar.bz2
otp-d46e634b1c4ab0d88597c7bdff69a646a54f4477.zip
Merge branch 'lars/seealso-normalize-space/OTP-13639'
* lars/seealso-normalize-space/OTP-13639: [erl_docgen] Normalize space for content in a seealso element
-rw-r--r--lib/erl_docgen/priv/xsl/db_html.xsl8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl
index 89f743a90b..75399992f2 100644
--- a/lib/erl_docgen/priv/xsl/db_html.xsl
+++ b/lib/erl_docgen/priv/xsl/db_html.xsl
@@ -2031,7 +2031,7 @@
</xsl:template>
<xsl:template match="seealso">
- <xsl:call-template name="seealso"/>
+ <xsl:call-template name="seealso"/>
</xsl:template>
<xsl:template name="seealso">
@@ -2412,7 +2412,11 @@
<xsl:template name="nl">
<xsl:text>
-</xsl:text>
+ </xsl:text>
+ </xsl:template>
+
+ <xsl:template match="seealso//text()">
+ <xsl:value-of select="normalize-space(.)"/>
</xsl:template>
</xsl:stylesheet>