[PATCH 01/18] doc: don't add a para for an empty summary

Peter Hutterer peter.hutterer at who-t.net
Mon Apr 1 17:08:55 PDT 2013


Removes enough empty lines to cut the PDF down by 4 pages.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 doc/Wayland/protocol-to-docbook.xsl | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/doc/Wayland/protocol-to-docbook.xsl b/doc/Wayland/protocol-to-docbook.xsl
index ca00efb..939ba40 100644
--- a/doc/Wayland/protocol-to-docbook.xsl
+++ b/doc/Wayland/protocol-to-docbook.xsl
@@ -95,9 +95,11 @@
         <xsl:if test="name() = 'entry'" >
           <para>Value: <xsl:value-of select="@value"/></para>
         </xsl:if>
-      <para>
-        <xsl:value-of select="@summary"/>
-      </para>
+        <xsl:if test="@summary" >
+          <para>
+            <xsl:value-of select="@summary"/>
+          </para>
+        </xsl:if>
     </listitem>
   </varlistentry>
 </xsl:template>
-- 
1.8.1.4



More information about the wayland-devel mailing list