diff options
| author | Emile Joubert <emile@rabbitmq.com> | 2011-09-22 17:25:41 +0100 |
|---|---|---|
| committer | Emile Joubert <emile@rabbitmq.com> | 2011-09-22 17:25:41 +0100 |
| commit | d19d494db5944c9ba905fd1dcaeebf7e001df52f (patch) | |
| tree | 3a2a495e128b322a55b2610e32af167567bad994 /docs/examples-to-end.xsl | |
| parent | ef7fdba68d8ee496b6fade46f1ae81c2ad9ef132 (diff) | |
| parent | 347cdb6ed96828eed31cef549c47f433160b73ae (diff) | |
| download | rabbitmq-server-git-d19d494db5944c9ba905fd1dcaeebf7e001df52f.tar.gz | |
Merged bug23866 into default
Diffstat (limited to 'docs/examples-to-end.xsl')
| -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 a0a741785f..4db1d5c479 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> |
