mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Allow titles to wrap in vertical layout of book details
This commit is contained in:
parent
4b1a4861b8
commit
cb5107472a
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user