Key Values for Documents Need to be constrained to one word

Bug #315107 reported by Andrew Manson (real_ate)
6
Affects Status Importance Assigned to Milestone
referencer (Debian)
New
Undecided
Unassigned
referencer (Ubuntu)
Fix Committed
Undecided
Mads Chr. Olesen

Bug Description

Binary package hint: referencer

I've identified this bug and i know how it can be fixed but i don't know enough about GTK to fix it myself.

The bug: When adding a new document to your library the "Key: " value can currently be input as more than one word.
Problem: When using BibTex output from referencer the key needs to be only one word or else latex programs have bugs. e.g. lyx cannot parse output at all and you are left with an empty reference.

User oriented Solution: notify user that they have entered a key with spaces in it and get them to change it before saving entry
Least effort Solution: replace all spaces in key values with underscores.

I have attached a patch for the "least Effort Solution" and would like it if it were included somehow ( i don't really know how this is done ). I used git to generate the patch from the current apt-get source file of referencer in Ibex referencer-1.1.2 .

This is a reproducible bug that is completely fixed with this patch.

Related branches

Revision history for this message
Andrew Manson (real_ate) (real-ate) wrote :
Revision history for this message
Andrew Manson (real_ate) (real-ate) wrote :

In fact i got this wrong, and on further testing i have got the correct patch now.

This is only a diff file, i don't really know how to make a propper patch.

this diff need to be applied to the file referencer-1.1.2/src/DocumentProperties.C

Changed in referencer (Ubuntu):
status: New → Fix Committed
assignee: nobody → Mads Chr. Olesen (shiyee)
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.