]> err.no Git - varnish/commitdiff
Render <code> elements.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 19:13:37 +0000 (19:13 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 20 Aug 2007 19:13:37 +0000 (19:13 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1902 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/doc/changes-html.xsl
varnish-cache/doc/changes.css

index 59d04fa1b098a18ea0575e8e6509897978bea8b5..9eddf388704d3907de6a598437356e86622b916c 100644 (file)
       <xsl:value-of select="@ref"/>
     </a>
   </xsl:template>
+
+  <xsl:template match="code">
+    <tt>
+      <xsl:apply-templates/>
+    </tt>
+  </xsl:template>
+
+  <xsl:template match="*" priority="-1">
+    <xsl:message>Warning: no template for element <xsl:value-of select="name(
+)"/></xsl:message>
+    <xsl:value-of select="concat('&lt;', name(), '&gt;')"/>
+    <xsl:apply-templates/>
+    <xsl:value-of select="concat('&lt;/', name(), '&gt;')"/>
+  </xsl:template>
 </xsl:stylesheet>
index 72312b52524038a4a462a17c53ad999a8464acfc..d0570053e1d79300af00fcac911d738184dcd0c8 100644 (file)
@@ -25,3 +25,7 @@ h3 {
        font-weight: bold;
        color: maroon;
 }
+
+code {
+       font-family: monospace;
+}