summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJim Apperly <jim@rabbitmq.com>2011-09-15 11:55:19 +0100
committerJim Apperly <jim@rabbitmq.com>2011-09-15 11:55:19 +0100
commit618bac22f9aec39a2f2bfb667e8b2bd11b449610 (patch)
tree9fe452704aa2176e37361339bf57d1043a28f5fe /docs
parentbb416385996c9cfcb5bd7c7c017c13d366703e5a (diff)
downloadrabbitmq-server-618bac22f9aec39a2f2bfb667e8b2bd11b449610.tar.gz
Fix duplicated example para when generating rabbitmqctl docs
Diffstat (limited to 'docs')
-rw-r--r--docs/examples-to-end.xsl7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/examples-to-end.xsl b/docs/examples-to-end.xsl
index a0a74178..cb8ce2a2 100644
--- a/docs/examples-to-end.xsl
+++ b/docs/examples-to-end.xsl
@@ -2,7 +2,10 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
-<xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.docbook.org/xml/4.5/docbookx.dtd" />
+<xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
+ doctype-system="http://www.docbook.org/xml/4.5/docbookx.dtd"
+ indent="yes"
+/>
<!-- Don't copy examples through in place -->
<xsl:template match="*[@role='example-prefix']"/>
@@ -27,7 +30,7 @@
<varlistentry>
<term><command><xsl:copy-of select="text()"/></command></term>
<listitem>
- <xsl:copy-of select="following-sibling::para[@role='example']"/>
+ <xsl:copy-of select="following-sibling::para[@role='example' and preceding-sibling::screen[1] = current()]"/>
</listitem>
</varlistentry>
</xsl:for-each>