View Single Post
Old 02-07-2012, 08:32 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by itimpi View Post
Trailing commas do not seem to be an issue as Calibre will do that itself if you add a tag via the keyboard, and then is happy to strip it off when you press OK.
My assumption is that the OP is creating a custom column with a fixed set of values. The "set of values" is a comma-separated list provided when defining the column. Calibre splits the list apart into components, then each component has leading and trailing spaces removed. Because of this processing, a leading comma, a trailing comma, or two commas in a row will result in empty values and thus the error message.

I have considered just ignoring empty values as that value is always included as the first element. Perhaps I will make this change.
chaley is offline   Reply With Quote