diff --git a/imxml2django.py b/imxml2django.py index c1ea06b..0e64502 100755 --- a/imxml2django.py +++ b/imxml2django.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -*- coding: utf-8; mode: python -*- -# Time-stamp: <2018-03-07 11:20:17 (kthoden)> +# Time-stamp: <2018-03-19 16:07:01 (kthoden)> import pickle import os @@ -1477,7 +1477,7 @@ def bring_footnote_down_django(footnote, fragment, footnote_number, object_numbe xml_eoa_print_regular_index = make_index(xml_regular_EOAindices, index_type = "regular") # If EOAprintindex is found, append xml_eoa_print_regular_index to xmlEOAdocument -xmlPrintindex = xmlDjangoTree.find(".//EOAprintindex") +xmlPrintindex = xmlTree.find(".//EOAprintindex") if xmlPrintindex is not None != 0: # Remove

from xmlDjangoTree xmlPrintindex.tag = "temp" @@ -1492,7 +1492,8 @@ def bring_footnote_down_django(footnote, fragment, footnote_number, object_numbe xml_eoa_print_person_index = make_index(xml_person_EOAindices, index_type = "person") # If EOAprintpersonindex is found, append xml_eoa_print_person_index to xmlEOAdocument -xmlPrintindex = xmlDjangoTree.find(".//EOAprintpersonindex") +# xmlPrintindex = xmlDjangoTree.find(".//EOAprintpersonindex") +xmlPrintindex = xmlTree.find(".//EOAprintpersonindex") if xmlPrintindex is not None != 0: # Remove

from xmlDjangoTree xmlPrintindex.tag = "temp" @@ -1508,7 +1509,7 @@ def bring_footnote_down_django(footnote, fragment, footnote_number, object_numbe xml_eoa_print_location_index = make_index(xml_location_EOAindices, index_type = "location") # If EOAprintlocationindex is found, append xml_eoa_print_location_index to xmlEOAdocument -xmlPrintindex = xmlDjangoTree.find(".//EOAprintlocationindex") +xmlPrintindex = xmlTree.find(".//EOAprintlocationindex") if xmlPrintindex is not None != 0: xmlPrintindex.tag = "temp" xmlPrintindex.getparent().tag = "temp"