markup-for-returnvalue.patch
text/x-diff
Filename: markup-for-returnvalue.patch
Type: text/x-diff
Part: 0
Patch
Format: unified
| File | + | − |
|---|---|---|
| doc/src/sgml/stylesheet-common.xsl | 5 | 0 |
| doc/src/sgml/stylesheet-fo.xsl | 6 | 0 |
diff --git a/doc/src/sgml/stylesheet-common.xsl b/doc/src/sgml/stylesheet-common.xsl
index e148c90..5936d9a 100644
--- a/doc/src/sgml/stylesheet-common.xsl
+++ b/doc/src/sgml/stylesheet-common.xsl
@@ -49,6 +49,11 @@
<xsl:call-template name="inline.charseq"/>
</xsl:template>
+<xsl:template match="returnvalue">
+ →
+ <xsl:call-template name="inline.monoseq"/>
+</xsl:template>
+
<xsl:template match="structfield">
<xsl:call-template name="inline.monoseq"/>
</xsl:template>
diff --git a/doc/src/sgml/stylesheet-fo.xsl b/doc/src/sgml/stylesheet-fo.xsl
index ea75408..a3b6463 100644
--- a/doc/src/sgml/stylesheet-fo.xsl
+++ b/doc/src/sgml/stylesheet-fo.xsl
@@ -63,6 +63,12 @@
</fo:inline>
</xsl:template>
+<!-- overrides stylesheet-common.xsl -->
+<xsl:template match="returnvalue">
+ <fo:inline font-family="{$symbol.font.family}">→ </fo:inline>
+ <xsl:call-template name="inline.monoseq"/>
+</xsl:template>
+
<!-- bug fix from <https://sourceforge.net/p/docbook/bugs/1360/#831b> -->
<xsl:template match="varlistentry/term" mode="xref-to">