Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
adlina1 authored Jul 29, 2024
1 parent afc8704 commit 2663334
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/bib2md.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import argparse
import html
import sys

import bibtexparser


def process_entry(entry):

try:
authors = entry["author"].split(" and ")
if len(authors) > 1:
Expand Down Expand Up @@ -46,7 +46,7 @@ def process_entry(entry):

except KeyError as e:
print(
f"One or more necessary fields {str(e)} not present in this BibTeX entry."
f"One or more necessary fields {str(e)} not present in this BibTeX entry.", file=sys.stderr,
)
return None, None

Expand All @@ -73,7 +73,7 @@ def format_simple(entry_str, order="desc"):
"Warning: Some entries were not processed due to unknown type",
file=sys.stderr,
)
print("List of unprocessed entrie(s):", [e for e in unprocessed_entries])
print("List of unprocessed entrie(s):", [e for e in unprocessed_entries], file=sys.stderr)

return [entry[1] for entry in formatted_entries]

Expand Down

0 comments on commit 2663334

Please sign in to comment.