This commit is contained in:
Kovid Goyal 2011-02-16 12:21:25 -07:00
parent ab9da85031
commit ec6bee57e3

View File

@ -690,8 +690,9 @@ class BrowseServer(object):
if m['is_custom'] and field not in displayed_custom_fields: if m['is_custom'] and field not in displayed_custom_fields:
continue continue
if m['datatype'] == 'comments' or field == 'comments': 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 continue
if field in ('title', 'formats') or not args.get(field, False) \ if field in ('title', 'formats') or not args.get(field, False) \
or not m['name']: or not m['name']: