diff options
author | Jim Apperly <jim@rabbitmq.com> | 2011-09-15 11:55:19 +0100 |
---|---|---|
committer | Jim Apperly <jim@rabbitmq.com> | 2011-09-15 11:55:19 +0100 |
commit | 618bac22f9aec39a2f2bfb667e8b2bd11b449610 (patch) | |
tree | 9fe452704aa2176e37361339bf57d1043a28f5fe /docs | |
parent | bb416385996c9cfcb5bd7c7c017c13d366703e5a (diff) | |
download | rabbitmq-server-618bac22f9aec39a2f2bfb667e8b2bd11b449610.tar.gz |
Fix duplicated example para when generating rabbitmqctl docs
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples-to-end.xsl | 7 |
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> |