Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Block quote rename
  • Loading branch information
Klaus Thoden committed Nov 28, 2018
1 parent 335a85c commit 2c9b5d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fix_tei.py
Expand Up @@ -332,6 +332,10 @@ def cleanup_xml(xml_tree):
for paragraph in paragraphs: for paragraph in paragraphs:
paragraph.attrib.pop("rend") paragraph.attrib.pop("rend")


wrongblockquotes = xml_tree.xpath("//t:p[contains(@rend, 'Quotation')]", namespaces=NS_MAP)
for blockquote in wrongblockquotes:
paragraph.set("rend", "quote")

etree.strip_tags(xml_tree, "tagtobestripped") etree.strip_tags(xml_tree, "tagtobestripped")


return xml_tree return xml_tree
Expand Down

0 comments on commit 2c9b5d1

Please sign in to comment.