Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bibtex: add trailing comma in url field #1900

Merged
merged 1 commit into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading