Skip to content

Pasting Bibtex entry fails when there is a line break before the entry key #9622

Open
@e-pet

Description

@e-pet

JabRef version

5.9 (latest release)

Operating system

Windows

Details on version and operating system

Windows 10 Enterprise, 21H2, OS build 19044.2604, Windows Feature Experience Pack 120.2212.4190.0

Checked with the latest development build

  • I made a backup of my libraries before testing the latest development version.
  • I have tested the latest development version and the problem persists

Steps to reproduce the behaviour

Compare the two versions of the same bibtex entry below. The first I can copy-paste into a library in JabRef, the second yields an Import error (see stack trace below). The only difference is that in the second version, there is a line break before the entry key. I am agnostic as to whether the second version is actually "correct bibtex", but I regularly find entries formatted like this on conference sites etc., and it would be very useful if they could just work.

Version 1 (works):

@inproceedings{somebody2023,
title={...}
}

Version 2 (raises an error):

@inproceedings{
somebody2023,
title={...}
}

Appendix

image

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Normal priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions