Merge pull request #51 from radicallyopensecurity/no-whitespace-after-recomm-table-list

No whitespace after recomm table list
This commit is contained in:
Patricia Piolon 2017-10-24 14:13:48 +02:00 committed by GitHub
commit ed989f339b

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()">
@ -57,6 +72,18 @@
<fo:list-block provisional-distance-between-starts="0.85cm"
provisional-label-separation="2.5mm">
<xsl:call-template name="checkIfLast"/>
<xsl:call-template name="do_ol"/>
</fo:list-block>
</xsl:template>
<xsl:template match="ol" mode="summarytable">
<fo:list-block provisional-distance-between-starts="0.85cm"
provisional-label-separation="2.5mm">
<xsl:call-template name="do_ol"/>
</fo:list-block>
</xsl:template>
<xsl:template name="do_ol">
<xsl:attribute name="space-after">
<xsl:choose>
<xsl:when test="ancestor::ul or ancestor::ol">
@ -72,7 +99,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"
@ -86,7 +114,6 @@
<xsl:value-of select="concat($ancestors, 'cm')"/>
</xsl:attribute>
<xsl:apply-templates select="*"/>
</fo:list-block>
</xsl:template>
<xsl:template match="ol/li">