bibtex export ignores custom fields

Bug #1958773 reported by Jan Kolix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Hallo,
when I add a custom column/field with the type 'comma separated values' this field seems to be a list internally.

bibtex.py checks the field for being an instance of string or bytes during export (lineno. 213) and ignores the field.

I added this elif in line 216, which solves the problem for me:

elif field.startswith('#') and isinstance(item, list):
    bibtex_entry.append('custom_%s = "%s"' % (field[1:],
         bibtexdict.utf8ToBibtex(', '.join(item))))

Best regards,
Jan

calibre 5.34 on arch linux

Tags: bibtex
Revision history for this message
Jan Kolix (tokkastar) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
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.