Skip to content

Commit

Permalink
Find all subsections
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed May 27, 2020
1 parent 3c9bf32 commit 3fed658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tei2imxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ def assign_ids(xml_tree, data, suppress_chapter_number):
secdict[section.get("id")] = section_number

subsection_counter = 1
subsections = section.findall(".//div3")
subsections = section.findall(".//div3")
for subsection in subsections:
if subsection.get('n') != "nonumber":
subsection_number = "%d.%d.%d" % (chapter_counter, section_counter, subsection_counter)
Expand Down

0 comments on commit 3fed658

Please sign in to comment.