Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Oxford comma
  • Loading branch information
kthoden committed Jul 19, 2019
1 parent 185712b commit 42d449f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tei2imxml.py
Expand Up @@ -390,7 +390,10 @@ def format_authors(list_author_id, publang, xml_tree, translation_file):
author_string = "{} {} {}".format(formatted_list[0], libeoaconvert.translate("and", publang, translation_file), formatted_list[1])
elif len(formatted_list) > 2:
author_string = ", ".join(formatted_list[0:-1])
author_string += " {} {}".format(libeoaconvert.translate("and", publang, translation_file), formatted_list[-1])
if publang == "en":
author_string += ", {} {}".format(libeoaconvert.translate("and", publang, translation_file), formatted_list[-1])
else:
author_string += " {} {}".format(libeoaconvert.translate("and", publang, translation_file), formatted_list[-1])
return author_string
# def format_authors ends here

Expand Down

0 comments on commit 42d449f

Please sign in to comment.