summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmile Joubert <emile@rabbitmq.com>2011-09-16 11:09:48 +0100
committerEmile Joubert <emile@rabbitmq.com>2011-09-16 11:09:48 +0100
commit2801f9c5fa4653688bf09e10c02ca5da2b2fe14a (patch)
treeb867cac7e0c9f1542aa547acc3fe1271289ca551
parent8780fc822c3f1d8e8d0b3881885926838c822f45 (diff)
parent45a0e3bd72f068ee3b28f616c820849543cb746a (diff)
downloadrabbitmq-server-2801f9c5fa4653688bf09e10c02ca5da2b2fe14a.tar.gz
Merged bug24424 into default
-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..4db1d5c4 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>