Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Header adjustments
  • Loading branch information
Klaus Thoden committed Nov 14, 2018
1 parent ba6a914 commit c28de82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fix_tei.py
Expand Up @@ -425,9 +425,9 @@ def fix_tei_header(xml_tree, bibfile_string):

# profile description
profile_desc = etree.Element("profileDesc")
brief_abstract = etree.SubElement(profile_desc, "abstract", n="BriefDescription")
brief_abstract = etree.SubElement(profile_desc, "abstract", n="brief")
brief_abstract_p = etree.SubElement(brief_abstract, "p").text = "Short abstract"
detailed_abstract = etree.SubElement(profile_desc, "abstract", n="DetailedDescription")
detailed_abstract = etree.SubElement(profile_desc, "abstract", n="detailed")
detailed_abstract_p = etree.SubElement(detailed_abstract, "p").text = "Long abstract"
additional_text = etree.SubElement(profile_desc, "abstract", n="additional")
additional_text_p = etree.SubElement(additional_text, "p").text = "Additional text"
Expand Down Expand Up @@ -461,7 +461,7 @@ def fix_tei_header(xml_tree, bibfile_string):
olderchanges.tag = "tagtobestripped"

first_change = etree.SubElement(revision_desc, "change", when=datetime.now().strftime("%Y-%m-%d"), who="#fixtei")
first_change.text = "Fixed TEI created by oxgarage conversion"
first_change.text = "Fixed TEI created by docxtotei"

return xml_tree
# def fix_tei_header ends here
Expand Down

0 comments on commit c28de82

Please sign in to comment.