Fixed hard-coding of 'en-US' locale

This commit is contained in:
Joshua Askharoun
2021-03-20 23:55:33 -05:00
parent f5627da222
commit 277cecbead
3 changed files with 90 additions and 47 deletions
+8
View File
@@ -73,3 +73,11 @@ def create_entry(doc: Document, title: str, id: str, href: str, date_updated: da
entry.appendChild(create_id(doc, id))
return entry
def create_author(doc: Document, name: str) -> Element:
author_elem: Element = doc.createElement("a:author")
author_name_elem: Element = doc.createElement("a:name")
set_element_value(author_name_elem, name)
author_elem.appendChild(author_name_elem)
return author_elem