diff --git a/legi2pdf/xsl/section.xsl b/legi2pdf/xsl/section.xsl index ebd106c..65b381a 100644 --- a/legi2pdf/xsl/section.xsl +++ b/legi2pdf/xsl/section.xsl @@ -253,10 +253,31 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - \end{multicols} + + + + + + + \end{multicols} + + + + + + \end{multicols} + \end{multicols} + \end{multicols} + + diff --git a/odf2legi/odf2legi.py b/odf2legi/odf2legi.py index 8d704f1..ceca26a 100644 --- a/odf2legi/odf2legi.py +++ b/odf2legi/odf2legi.py @@ -1140,6 +1140,8 @@ def convert_to_legi_xml(content, metadata=None, styles=None): # clear it. offstructure.remove(offstructure.getchildren()[0]) + legi.append(ET.ProcessingInstruction('end-of-document')) + # get content as an XML tree out = StringIO() ET.ElementTree(legi).write(out)