Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Index was not found
  • Loading branch information
Klaus Thoden committed Mar 19, 2018
1 parent dec2644 commit 07092b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions 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
Expand Down Expand Up @@ -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 <p><EOAprintindex/></p> from xmlDjangoTree
xmlPrintindex.tag = "temp"
Expand All @@ -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 <p><EOAprintindex/></p> from xmlDjangoTree
xmlPrintindex.tag = "temp"
Expand All @@ -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"
Expand Down

0 comments on commit 07092b6

Please sign in to comment.