From 8bc842ddb2a38fff25c19c577f41757387e6c3fd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 18 Jul 2017 11:43:45 +0530 Subject: [PATCH] Allow blanks lines in the template --- src/pyj/book_list/custom_list.pyj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pyj/book_list/custom_list.pyj b/src/pyj/book_list/custom_list.pyj index 9cd9b69810..fc339e3961 100644 --- a/src/pyj/book_list/custom_list.pyj +++ b/src/pyj/book_list/custom_list.pyj @@ -44,6 +44,7 @@ def default_template(): _('{series_index} of {series}') + '|||{rating}', '{tags}', _('Date: {timestamp}') + '|||' + _('Published: {pubdate}') + '|||' + _('Publisher: {publisher}'), + '', ] } return default_template.ans @@ -204,6 +205,7 @@ def render_part(part, template, book_id, metadata): def render_line(line, template, book_id, metadata): parts = v'[]' + line = line or '\xa0' for p in line.split(/\|\|\|/): part = render_part(p, template, book_id, metadata) if part: