genkey plugin parsing of names confused by names containing 'and'
Bug #1453564 reported by
Davi da Silva Böger
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Referencer |
New
|
Undecided
|
Unassigned |
Bug Description
I have some papers with author named 'Marandi'. I use genkey to generate the key for the entry, but the %a field resolves to 'Mar'. I suppose it is parsing the 'and' in Marandi and treating it as a separator.
I'll look at the code and try to figure out the problem.
To post a comment you must log in.
I looked at genkey.py and found the problem. Line 94 is as follows:
author = author. split(" and")[0] .split( ",")[0] .split( " ")[0]
The first split is the culprit. Simply adding spaces around it (i.e. split(" and ")) should solve the problem, I guess.