Allow titles to wrap in vertical layout of book details

This commit is contained in:
Kovid Goyal 2019-09-11 11:10:10 +05:30
parent 4b1a4861b8
commit cb5107472a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -129,14 +129,14 @@ def render_html(mi, css, vertical, widget, all_fields=False, render_data_func=No
</style>
<style type="text/css">
%s
table td.title { white-space: nowrap }
table td.title { white-space: %s }
</style>
</head>
<body>
%%s
</body>
<html>
'''%(c, css)
'''%(c, css, 'normal' if vertical else 'nowrap')
comments = ''
if comment_fields:
comments = '\n'.join('<div>%s</div>' % x for x in comment_fields)