Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzupkoii committed Feb 16, 2024
2 parents abb7605 + 27a68c8 commit ccfc69b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions markdown_generator/PubsFromBib.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"\n",
" md_filename = os.path.basename(md_filename)\n",
"\n",
" with open(\"../_publications/\" + md_filename, 'w') as f:\n",
" with open(\"../_publications/\" + md_filename, 'w', encoding=\"utf-8\") as f:\n",
" f.write(md)\n",
" print(f'SUCESSFULLY PARSED {bib_id}: \\\"', b[\"title\"][:60],\"...\"*(len(b['title'])>60),\"\\\"\")\n",
" # field may not exist for a reference\n",
Expand Down Expand Up @@ -220,4 +220,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}
2 changes: 1 addition & 1 deletion markdown_generator/pubsFromBib.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def html_escape(text):

md_filename = os.path.basename(md_filename)

with open("../_publications/" + md_filename, 'w') as f:
with open("../_publications/" + md_filename, 'w', encoding="utf-8") as f:
f.write(md)
print(f'SUCESSFULLY PARSED {bib_id}: \"', b["title"][:60],"..."*(len(b['title'])>60),"\"")
# field may not exist for a reference
Expand Down

0 comments on commit ccfc69b

Please sign in to comment.