diff options
author | André Malo <nd@apache.org> | 2004-11-20 00:10:40 +0000 |
---|---|---|
committer | André Malo <nd@apache.org> | 2004-11-20 00:10:40 +0000 |
commit | a7b28b500309bee6fd01737e53d3241d7c4a17d5 (patch) | |
tree | 44555959cf3cabe91a8b1a84d14e9925526516f8 /docs/manual | |
parent | e09641ac9653d8d667977fce3f540285f57123e4 (diff) | |
download | httpd-a7b28b500309bee6fd01737e53d3241d7c4a17d5.tar.gz |
backport joe's fix of examples in dds.
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
Diffstat (limited to 'docs/manual')
-rw-r--r-- | docs/manual/style/xsl/nroff.xsl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/manual/style/xsl/nroff.xsl b/docs/manual/style/xsl/nroff.xsl index 9f9924ffe5..965cc66cf6 100644 --- a/docs/manual/style/xsl/nroff.xsl +++ b/docs/manual/style/xsl/nroff.xsl @@ -313,7 +313,11 @@ <!-- ==================================================================== --> <!-- <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; |