Skip to content

Commit

Permalink
bibtex: add trailing comma in url field
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandromumo authored and slint committed Dec 10, 2024
1 parent 5090c80 commit 2b28f50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion invenio_rdm_records/resources/serializers/bibtex/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _format_output_row(self, field, value):
elif field == "month":
out = " {0:<12} = {1},\n".format(field, value)
elif field == "url":
out = " {0:<12} = {{{1}}}\n".format(field, value)
out = " {0:<12} = {{{1}}},\n".format(field, value)
else:
if not isinstance(value, list) and value.isdigit():
out = " {0:<12} = {1},\n".format(field, value)
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/serializers/test_bibtex_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_bibtex_serializer_full_record(running_app, updated_full_record):
" publisher = {InvenioRDM},\n"
" version = {v1.0},\n"
" doi = {10.1234/12345-abcde},\n"
" url = {https://doi.org/10.1234/12345-abcde}\n"
" url = {https://doi.org/10.1234/12345-abcde},\n"
"}"
)

Expand Down

0 comments on commit 2b28f50

Please sign in to comment.