mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix comments not hidden in Book details panel when they are turned off via Preferences->Look & Feel->Book Details
This commit is contained in:
parent
2676903fbf
commit
dc594ba4c8
@ -56,8 +56,11 @@ def render_html(mi, css, vertical, widget, all_fields=False): # {{{
|
||||
</body>
|
||||
<html>
|
||||
'''%(f, c, css)
|
||||
fm = getattr(mi, 'field_metadata', field_metadata)
|
||||
fl = dict(get_field_list(fm))
|
||||
show_comments = (all_fields or fl.get('comments', True))
|
||||
comments = u''
|
||||
if mi.comments:
|
||||
if mi.comments and show_comments:
|
||||
comments = comments_to_html(force_unicode(mi.comments))
|
||||
right_pane = u'<div id="comments" class="comments">%s</div>'%comments
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user