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>
<style type="text/css"> <style type="text/css">
%s %s
table td.title { white-space: nowrap } table td.title { white-space: %s }
</style> </style>
</head> </head>
<body> <body>
%%s %%s
</body> </body>
<html> <html>
'''%(c, css) '''%(c, css, 'normal' if vertical else 'nowrap')
comments = '' comments = ''
if comment_fields: if comment_fields:
comments = '\n'.join('<div>%s</div>' % x for x in comment_fields) comments = '\n'.join('<div>%s</div>' % x for x in comment_fields)