diff options
author | Lars Thorsen <[email protected]> | 2017-10-10 10:25:38 +0200 |
---|---|---|
committer | Lars Thorsen <[email protected]> | 2017-10-10 10:25:38 +0200 |
commit | c07404052aa4ede2d8a5714d498637b304e11a6a (patch) | |
tree | 2fcc506dcc73fb559dad4b08095ed15252fdbcff /lib/erl_docgen/priv/xsl/db_html.xsl | |
parent | e38c688d3961bedcd85f842fd052836cb345a902 (diff) | |
parent | 23ed87829571316b4d026dd57bb69737921f7fcc (diff) | |
download | otp-c07404052aa4ede2d8a5714d498637b304e11a6a.tar.gz otp-c07404052aa4ede2d8a5714d498637b304e11a6a.tar.bz2 otp-c07404052aa4ede2d8a5714d498637b304e11a6a.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/erl_docgen/priv/xsl/db_html.xsl')
-rw-r--r-- | lib/erl_docgen/priv/xsl/db_html.xsl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/erl_docgen/priv/xsl/db_html.xsl b/lib/erl_docgen/priv/xsl/db_html.xsl index a5e277aece..75614392fb 100644 --- a/lib/erl_docgen/priv/xsl/db_html.xsl +++ b/lib/erl_docgen/priv/xsl/db_html.xsl @@ -30,6 +30,7 @@ xmlns:fn="http://www.w3.org/2005/02/xpath-functions"> <xsl:include href="db_html_params.xsl"/> + <xsl:include href="db_funcs.xsl"/> <func:function name="erl:flip_first_char"> <xsl:param name="in"/> @@ -1132,7 +1133,14 @@ <xsl:variable name="codenum"> <xsl:number level="any" from="chapter" count="code"/> </xsl:variable> - <div class="example"><pre><xsl:apply-templates/></pre></div> + <xsl:choose> + <xsl:when test="not(descendant::anno)"> + <div class="example"><pre><xsl:value-of select="erl:code_trim(text())"/></pre></div> + </xsl:when> + <xsl:otherwise> + <div class="example"><pre><xsl:apply-templates/></pre></div> + </xsl:otherwise> + </xsl:choose> </xsl:template> <!-- Pre --> |