diff options
author | Bill Spitzak <spitzak@gmail.com> | 2015-01-02 18:29:20 -0800 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-01-23 18:45:01 -0800 |
commit | be8064d2d4a94df010e1909eddb7e57c39babc61 (patch) | |
tree | eaf95bca4513907cd9daabc1f8329cf30a7007fd | |
parent | 1f39fbf8d282b3c70e8a78a37a0b2cf7ac863763 (diff) |
doc: compress the lists in the protocol docs some
Use simpara to remove the blank lines, and put the type/value and
the comment into the same line.
Reviewed-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
-rw-r--r-- | doc/publican/protocol-to-docbook.xsl | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/doc/publican/protocol-to-docbook.xsl b/doc/publican/protocol-to-docbook.xsl index 354ff3a..723f5e6 100644 --- a/doc/publican/protocol-to-docbook.xsl +++ b/doc/publican/protocol-to-docbook.xsl @@ -81,20 +81,32 @@ </section> </xsl:template> -<!-- table contents for request/event arguments or enum values --> -<xsl:template match="arg|entry"> +<!-- table contents for enum values --> +<xsl:template match="entry"> <varlistentry> <term><xsl:value-of select="@name"/></term> <listitem> - <xsl:if test="name() = 'arg'" > - <para>Type: <xsl:value-of select="@type"/></para> - </xsl:if> - <xsl:if test="name() = 'entry'" > - <para>Value: <xsl:value-of select="@value"/></para> - </xsl:if> + <simpara> + (<xsl:value-of select="@value"/>) <xsl:if test="@summary" > - <para><xsl:value-of select="@summary"/></para> + <xsl:value-of select="@summary"/> </xsl:if> + </simpara> + </listitem> + </varlistentry> +</xsl:template> + +<!-- table contents for request/event arguments --> +<xsl:template match="arg"> + <varlistentry> + <term><xsl:value-of select="@name"/></term> + <listitem> + <simpara> + <xsl:value-of select="@type"/> + <xsl:if test="@summary" > + <xsl:text> </xsl:text><xsl:value-of select="@summary"/> + </xsl:if> + </simpara> </listitem> </varlistentry> </xsl:template> |