no more large whitespace after ul in recommendation table

This commit is contained in:
skyanth 2017-10-24 14:10:35 +02:00
parent 788795e8f4
commit 81a107f346

View File

@ -8,6 +8,20 @@
<fo:list-block provisional-distance-between-starts="0.75cm"
provisional-label-separation="2.5mm">
<xsl:call-template name="checkIfLast"/>
<xsl:call-template name="do_ul"/>
</fo:list-block>
</xsl:template>
<xsl:template match="ul" mode="summarytable">
<!-- skip 'check if last' template -->
<fo:list-block provisional-distance-between-starts="0.75cm"
provisional-label-separation="2.5mm">
<xsl:call-template name="do_ul"/>
</fo:list-block>
</xsl:template>
<xsl:template name="do_ul">
<xsl:attribute name="space-after">
<xsl:choose>
<xsl:when test="ancestor::ul or ancestor::ol">
@ -23,7 +37,8 @@
<xsl:choose>
<xsl:when test="count(ancestor::ol) or count(ancestor::ul)">
<xsl:value-of
select="1 +
select="
1 +
(count(ancestor::ol) +
count(ancestor::ul)) *
1.25"
@ -37,9 +52,9 @@
<xsl:value-of select="concat($ancestors, 'cm')"/>
</xsl:attribute>
<xsl:apply-templates select="*"/>
</fo:list-block>
</xsl:template>
<xsl:template match="ul/li">
<fo:list-item xsl:use-attribute-sets="li">
<fo:list-item-label end-indent="label-end()">