Viewer: In paged mode break long text without spaces at arbitrary points instead of overflowing to the next page. Fixes #1852192 [long urls in footnotes are not hyphenated in the next line but instead to the next page](https://bugs.launchpad.net/calibre/+bug/1852192)

This commit is contained in:
Kovid Goyal 2019-11-15 10:03:28 +05:30
parent 72e8b008bf
commit 9e8585faf1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -180,7 +180,7 @@ def layout(is_single_page, on_resize):
set_css(document.body, column_gap=gap + 'px', column_width=col_width + 'px', column_rule='0px inset blue',
min_width='0', max_width='none', min_height='0', max_height='100vh', column_fill='auto',
margin='0', border_width='0', padding='0', box_sizing='content-box',
width=screen_width + 'px', height=screen_height + 'px'
width=screen_width + 'px', height=screen_height + 'px', overflow_wrap='break-word'
)
# Without this, webkit bleeds the margin of the first block(s) of body
# above the columns, which causes them to effectively be added to the