This commit is contained in:
Kovid Goyal 2018-09-27 13:28:57 +05:30
parent d0cd330c3b
commit ed4c499e53
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -273,6 +273,7 @@ def render_jacket(mi, output_profile,
elif dt == 'rating':
args[dkey] = rating_to_stars(mi.get(key), m.get('display', {}).get('allow_half_stars', False))
elif dt == 'comments':
val = val or ''
display = m.get('display', {})
ctype = display.get('interpret_as') or 'html'
if ctype == 'long-text':