]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
backport joe's fix of examples in dds.
authorAndré Malo <nd@apache.org>
Sat, 20 Nov 2004 00:10:40 +0000 (00:10 +0000)
committerAndré Malo <nd@apache.org>
Sat, 20 Nov 2004 00:10:40 +0000 (00:10 +0000)
It's not really perfect now, but better than showing format instructions in the
output.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@105903 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/xsl/nroff.xsl

index 9f9924ffe58bd99d4beafdfb505f646a8a2b77df..965cc66cf67a2173102e46a91b418c67b3c51c2b 100644 (file)
 <!-- ==================================================================== -->
 <!-- <example>                                                            -->
 <!-- ==================================================================== -->
-<xsl:template match="example">
+<xsl:template match="example[ancestor::dd]">
+  <xsl:apply-templates/>
+</xsl:template>
+
+<xsl:template match="example[not(ancestor::dd)]">
 &lf;
 <xsl:text>.nf</xsl:text>&lf;
 <xsl:apply-templates />&lf;