mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 21:43:51 +02:00
Allow titles to wrap in vertical layout of book details
This commit is contained in:
parent
4b1a4861b8
commit
cb5107472a
1 changed files with 2 additions and 2 deletions
|
|
@ -129,14 +129,14 @@ def color_to_string(col):
|
|||
</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…
Reference in a new issue