bibtex export ignores custom fields

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

Bug Description

when I add a custom column/field with the type 'comma separated values' this field seems to be a list internally. 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,

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.