You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the list assigned to writer.display_order contains a key more than once,
then the according line in the bibentry will also be created more than once.
E.g.:
Thanks for reporting. I would be inclined to convert the input into set in the function as it does not make sense to duplicate entries. Any other opinion @omangin ?
@omangin I would not use sets directly, as those are by definition unordered (thus we would rely, AFAIK, on some undocumented implementation of set to preserve order).
This almost certainly shows a mistake by the user, and instead of silently attempting some fix, I suggest raising an exception if the display_order contains duplicates. Doing so requires a setter, thus display_order would have to be transferred into a property.
bibtexparser 1.1.0.
Not a big problem, but confused me for a while:
If the list assigned to
writer.display_order
contains a key more than once,then the according line in the bibentry will also be created more than once.
E.g.:
results in
I do not even claim that this is a bug, but maybe a short comment in the documentation could be added.
The text was updated successfully, but these errors were encountered: