Skip to content

AuthorList parse adds extra space if author middlename is abbrevatied without dot #4864

Closed
@Siedlerchr

Description

Importing the PubMed entry with the Id gives me a bunch of names.
However in e26d9ab I added a normalize names formatter to add dots to the abbrevated names.

However, the Authorlist.parse method adds an extra space between the first and last name of the last author.
N.[space][space]Henriette

Author{firstPart='N.  Henriette', firstAbbr='N. H.', vonPart='null', lastPart='Uhlenhaut', jrPart='null'}

Input entry to the formatter:

@article{,
  author = {Dyar, Kenneth Allen and Hubert, Michaël Jean and Mir, Ashfaq Ali and Ciciliot, Stefano and Lutter, Dominik and Greulich, Franziska and Quagliarini, Fabiana and Kleinert, Maximilian and Fischer, Katrin and Eichmann, Thomas Oliver and Wright, Lauren Emily and Peña Paz, Marcia Ivonne and Casarin, Alberto and Pertegato, Vanessa and Romanello, Vanina and Albiero, Mattia and Mazzucco, Sara and Rizzuto, Rosario and Salviati, Leonardo and Biolo, Gianni and Blaauw, Bert and Schiaffino, Stefano and Uhlenhaut, N Henriette},
}

Workaround is to call the NormalizeNames formatter again, then the space is removed

Entry preview in import is correct, so the error is the parser:
grafik

Metadata

Assignees

No one assigned

    Labels

    [outdated] type: bugConfirmed bugs or reports that are very likely to be bugs

    Type

    No type

    Projects

    • Status

      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions