mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 07:08:17 +01:00
E-book viewer: Fix a regression that caused non-HTML descriptions to not be displayed in the metadata page
This commit is contained in:
parent
14051f4864
commit
eae5ff6d88
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ def process_field(field, fm):
|
|||
val = E.span(val).outerHTML
|
||||
else:
|
||||
if field is 'comments' and '<' not in val:
|
||||
val = '\n'.join(['<p class="description">{}</p>'.format(x.pyreplace('\n', '<br>')) for x in val.split('\n\n')])
|
||||
val = '\n'.join(['<p class="description">{}</p>'.format(x.replace(/\n/g, '<br>')) for x in val.split('\n\n')])
|
||||
if hp is 'side':
|
||||
add_row(name, val, is_html=True)
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue