From eae5ff6d88bf33b2b28a216d15a1f5c3cb76ea0a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 19 Jan 2021 09:24:34 +0530 Subject: [PATCH] E-book viewer: Fix a regression that caused non-HTML descriptions to not be displayed in the metadata page --- src/pyj/book_list/book_details.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/book_list/book_details.pyj b/src/pyj/book_list/book_details.pyj index e15dba88cb..25e7a86320 100644 --- a/src/pyj/book_list/book_details.pyj +++ b/src/pyj/book_list/book_details.pyj @@ -328,7 +328,7 @@ def render_metadata(mi, table, book_id, iframe_css): # {{{ val = E.span(val).outerHTML else: if field is 'comments' and '<' not in val: - val = '\n'.join(['

{}

'.format(x.pyreplace('\n', '
')) for x in val.split('\n\n')]) + val = '\n'.join(['

{}

'.format(x.replace(/\n/g, '
')) for x in val.split('\n\n')]) if hp is 'side': add_row(name, val, is_html=True) return