This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Space After Footnotes


DocBook XSL 1.66.1 seems to be purposefully inserting a space after footnotes which isn't desirable in situations such as this:

test<footnote>text</footnote>, more text

I simply overrode the template in my custom stylesheet an commented out the line with the space:

<xsl:template match="footnote">
<xsl:choose>
<xsl:when test="ancestor::tgroup">
<xsl:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="." mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<fo:footnote>
<fo:inline>
<xsl:call-template name="format.footnote.mark">
<xsl:with-param name="mark">
<xsl:apply-templates select="." mode="footnote.number"/>
</xsl:with-param>
</xsl:call-template>
<!--xsl:text> </xsl:text-->
</fo:inline>
<fo:footnote-body font-family="{$body.fontset}"
font-size="{$footnote.font.size}"
font-weight="normal"
font-style="normal"
text-align="{$alignment}"
margin-left="0pc">
<xsl:apply-templates/>
</fo:footnote-body>
</fo:footnote>
</xsl:otherwise>
</xsl:choose>
</xsl:template>



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]