summaryrefslogtreecommitdiffstats
path: root/legi2pdf/xsl/section.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'legi2pdf/xsl/section.xsl')
-rw-r--r--legi2pdf/xsl/section.xsl2
1 files changed, 2 insertions, 0 deletions
diff --git a/legi2pdf/xsl/section.xsl b/legi2pdf/xsl/section.xsl
index dbd0c7b..d9f16cd 100644
--- a/legi2pdf/xsl/section.xsl
+++ b/legi2pdf/xsl/section.xsl
@@ -258,6 +258,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
the columns open and they'll get closed when the end-of-document
processing instruction will be met.
-->
+ <xsl:when test="following-sibling::legistic_part"></xsl:when>
<xsl:when test="following-sibling::legistic_title"></xsl:when>
<xsl:when test="following-sibling::legistic_chapter"></xsl:when>
<xsl:when test="following-sibling::legistic_section"></xsl:when>
@@ -273,6 +274,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
<!-- columns have been left open after <nosection/>, they must be closed
now that the end of the document has been reached.
-->
+ <xsl:if test="//nosection/following-sibling::legistic_part"><xsl:text>\end{multicols}&#10;</xsl:text></xsl:if>
<xsl:if test="//nosection/following-sibling::legistic_title"><xsl:text>\end{multicols}&#10;</xsl:text></xsl:if>
<xsl:if test="//nosection/following-sibling::legistic_chapter"><xsl:text>\end{multicols}&#10;</xsl:text></xsl:if>
<xsl:if test="//nosection/following-sibling::legistic_section"><xsl:text>\end{multicols}&#10;</xsl:text></xsl:if>