doc: compress the lists in the protocol docs some
authorBill Spitzak <spitzak@gmail.com>
Sat, 3 Jan 2015 02:29:20 +0000 (18:29 -0800)
committerBryce Harrington <bryce@osg.samsung.com>
Sat, 24 Jan 2015 02:45:01 +0000 (18:45 -0800)
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>
doc/publican/protocol-to-docbook.xsl

index 354ff3a..723f5e6 100644 (file)
   </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>