From ec6bee57e37fc036e271d96983127cac4f527510 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Feb 2011 12:21:25 -0700 Subject: [PATCH] ... --- src/calibre/library/server/browse.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/calibre/library/server/browse.py b/src/calibre/library/server/browse.py index a18def29de..c1903d0bdf 100644 --- a/src/calibre/library/server/browse.py +++ b/src/calibre/library/server/browse.py @@ -690,8 +690,9 @@ class BrowseServer(object): if m['is_custom'] and field not in displayed_custom_fields: continue if m['datatype'] == 'comments' or field == 'comments': - comments.append((m['name'], comments_to_html(mi.get(field, - '')))) + val = mi.get(field, '') + if val and val.strip(): + comments.append((m['name'], comments_to_html(val))) continue if field in ('title', 'formats') or not args.get(field, False) \ or not m['name']: