Skip to content

Commit 347ef01

Browse files
committed
Sort and dedup references
1 parent d0e26fc commit 347ef01

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,10 @@ def main():
232232

233233
with open(args.bib_file, "r", encoding="utf-8") as bib_file:
234234
references = LiteratureRef.parse(bib_file)
235+
236+
# sort and deduplicate references
235237
references.sort()
238+
references = list(dict.fromkeys(references))
236239

237240
# Convert kebab case to title case for the output title
238241
title = pathlib.Path(args.bib_file).stem.replace("-", " ").title()

0 commit comments

Comments
 (0)