summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-03-22 09:45:10 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-03-22 09:45:34 (GMT)
commitbb29b505f6acb55f761276b0bdf83d3ad5d8da99 (patch)
tree338a8488c884c88b7a2478702b68838846c809ec
parent9cacd6c00c4bb3c020a4e6e32ba61fcc436edeb8 (diff)
downloadtabellioOOo-master.zip
tabellioOOo-master.tar.gz
tabellioOOo-master.tar.bz2
add support for "texte adopte" documents starting with a legistic part (#31644)HEADmaster
-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>