genkey plugin parsing of names confused by names containing 'and'

Bug #1453564 reported by Davi da Silva Böger
6
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.

Revision history for this message
Davi da Silva Böger (dsboger) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.