Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add divider
  • Loading branch information
kthoden committed Feb 28, 2020
1 parent 6759000 commit 51a5089
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tei2imxml.py
Expand Up @@ -650,6 +650,11 @@ def handle_refs_default(ref):
for section in eoa_sections:
section.tag = "div2"

eoa_milestones = xml_tree.xpath("//t:milestone[@type='divider']", namespaces=NS_MAP)
for milestone in eoa_milestones:
milestone.tag = "p"
milestone.set("class", "divider")

eoa_subsections = xml_tree.xpath("//t:div[@type='subsection']", namespaces=NS_MAP)
for subsection in eoa_subsections:
subsection.tag = "div3"
Expand Down

0 comments on commit 51a5089

Please sign in to comment.