summaryrefslogtreecommitdiff
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
commit67251d5692c497986e593f1bf8d04f8b2bab294b (patch)
tree9fe452704aa2176e37361339bf57d1043a28f5fe
parent0d41945082d2c6a192007f7b8cef39d196e5680c (diff)
downloadrabbitmq-server-git-67251d5692c497986e593f1bf8d04f8b2bab294b.tar.gz
Fix duplicated example para when generating rabbitmqctl 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 a0a741785f..cb8ce2a235 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>