doc: Don't print dash if doxygen brief description missing
authorBill Spitzak <spitzak@gmail.com>
Wed, 12 Nov 2014 02:42:57 +0000 (18:42 -0800)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 25 Nov 2014 14:21:39 +0000 (16:21 +0200)
doc/publican/doxygen-to-publican.xsl

index 7f7abe9..461cf3e 100644 (file)
     <varlistentry id="{@id}">
         <term>
           <xsl:value-of select="name"/>
-        - <xsl:apply-templates select="briefdescription" />
+          <xsl:if test="normalize-space(briefdescription) != ''">
+            - <xsl:apply-templates select="briefdescription" />
+          </xsl:if>
         </term>
         <listitem>
           <para>
     <xsl:if test="@kind = 'class'">
     <varlistentry id="{@id}">
         <term>
-            <xsl:apply-templates select="compoundname" />
-            <xsl:if test="briefdescription">
+            <xsl:value-of select="compoundname" />
+            <xsl:if test="normalize-space(briefdescription) != ''">
                 - <xsl:apply-templates select="briefdescription" />
             </xsl:if>
         </term>