View Single Post
Old 10-02-2010, 07:51 AM   #3
chaley
Wizard
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: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
Quote:
Originally Posted by economix View Post
I am wondering if there is a way to eliminate the extraneous dashes at the start of the title when there is nothing in the series field. Or alternatively, an easy way to turn the plugboard on and off.
Use
Code:
{series}{series_index:0>2s| - | - }{title}
The vertical bars separate the value from leading and trailing text that is added only if the value is not empty.

You might want to take a look at the (new) template tutorial in the manual. There are lots of fun toys.
__________________
Support calibre developers at no cost to you by using calibre's get books feature.
Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre
charles.haleys.org/calibre
chaley is offline   Reply With Quote