Skip to content

Commit

Permalink
Conversion: Fix regression in 5.10 that broke conversion when inserti…
Browse files Browse the repository at this point in the history
…ng metadata and using custom long text columns
  • Loading branch information
kovidgoyal committed Jan 22, 2021
1 parent bff0582 commit 3d202a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/calibre/ebooks/oeb/transforms/jacket.py
Expand Up @@ -340,8 +340,7 @@ def generate_html(comments):
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'
ctype = m.get('display', {}).get('interpret_as') or 'html'
if ctype == 'long-text':
val = '<pre style="white-space:pre-wrap">%s</pre>' % escape(val)
elif ctype == 'short-text':
Expand Down

0 comments on commit 3d202a7

Please sign in to comment.