aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2014-11-11 18:42:57 -0800
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-11-25 16:21:39 +0200
commitf2974c1115dd2191e1352574283ca43729eaf7b8 (patch)
tree1437913dcefe34f248621a05510c59dbce563072 /doc
parentdoc: preserve links produced by Doxygen (diff)
downloadwayland-f2974c1115dd2191e1352574283ca43729eaf7b8.tar
wayland-f2974c1115dd2191e1352574283ca43729eaf7b8.tar.gz
wayland-f2974c1115dd2191e1352574283ca43729eaf7b8.tar.bz2
wayland-f2974c1115dd2191e1352574283ca43729eaf7b8.tar.lz
wayland-f2974c1115dd2191e1352574283ca43729eaf7b8.tar.xz
wayland-f2974c1115dd2191e1352574283ca43729eaf7b8.tar.zst
wayland-f2974c1115dd2191e1352574283ca43729eaf7b8.zip
doc: Don't print dash if doxygen brief description missing
Diffstat (limited to 'doc')
-rw-r--r--doc/publican/doxygen-to-publican.xsl8
1 files 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>