Commit 7e936709 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

Really render <code> elements correctly.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@1903 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 2601dede
...@@ -74,9 +74,12 @@ ...@@ -74,9 +74,12 @@
</xsl:template> </xsl:template>
<xsl:template match="code"> <xsl:template match="code">
<tt> <span>
<xsl:attribute name="class">
<xsl:value-of select="name()"/>
</xsl:attribute>
<xsl:apply-templates/> <xsl:apply-templates/>
</tt> </span>
</xsl:template> </xsl:template>
<xsl:template match="*" priority="-1"> <xsl:template match="*" priority="-1">
......
...@@ -26,6 +26,6 @@ h3 { ...@@ -26,6 +26,6 @@ h3 {
color: maroon; color: maroon;
} }
code { .code {
font-family: monospace; font-family: monospace;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment