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

Bill Spitzak spitzak at gmail.com
Fri Nov 7 17:33:34 PST 2014


---
 doc/publican/doxygen-to-publican.xsl |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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>
-- 
1.7.9.5



More information about the wayland-devel mailing list