Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Format uids
  • Loading branch information
kthoden committed Jul 30, 2019
1 parent 26ccafa commit 5398cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tei2imxml.py
Expand Up @@ -1360,7 +1360,7 @@ def main():
elements_with_ids = xml_add_bib.xpath("//div1 | //div2 | //div3 | //note | //item | //table | //EOAfigure/anchor | //EOAequation | //formula | //theorem")
element_counter = 1
for element in elements_with_ids:
element.set("id", "uid" + str(element_counter))
element.set("id", "uid" + '{:04d}'.format(element_counter))
element_counter += 1

assigned_ids, data_to_pickle = assign_ids(xml_add_bib, data, args.suppress_chapter_number)
Expand Down

0 comments on commit 5398cd0

Please sign in to comment.