Skip to content

Removal of trailing spaces fails parsing of erroneously filling bib files  #8682

Open
@gaochenyi

Description

@gaochenyi

Some people may fill fields in bib files erroneously.

For example, the OP of this post on JabRef forum, and his/her colleagues, appends \ to period following uppercase letter, maybe hoping to control spacing after periods.

@Article{Morcos.etal-2011a,
  author     = {Surname, A.\ B.\ },
...
}

The erroneous preparing entry listed above would cause parsing fails, because JabRef would automatically remove trailing spaces when saving files and after the trailing space is removed, ending braces is escaped.

Though the practice adopted there is presumably inappropriate, a clean-up action or integrity check may be enough to fix this problem, or to prevent users appending \ to periods following uppercase letter.

By the way, books/tutorials on LaTeX usually teach readers to use empty braces to protect the <backslash><space> command, i.e., \ {} instead of \ .
Thus, if this issue could not fixed easily, it may be better to simply ignore it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions