[4/9] doc: Don't print dash if doxygen brief description missing

Submitted by Bill Spitzak on Nov. 12, 2014, 2:42 a.m.

Details

Message ID 1415760182-19568-5-git-send-email-spitzak@gmail.com
State Accepted
Headers show

Not browsing as part of any series.

Commit Message

Bill Spitzak Nov. 12, 2014, 2:42 a.m.
---
 doc/publican/doxygen-to-publican.xsl |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/doc/publican/doxygen-to-publican.xsl b/doc/publican/doxygen-to-publican.xsl
index 7f7abe9..461cf3e 100644
--- a/doc/publican/doxygen-to-publican.xsl
+++ b/doc/publican/doxygen-to-publican.xsl
@@ -131,7 +131,9 @@ 
     <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>
@@ -150,8 +152,8 @@ 
     <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>