mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
72e8b008bf
commit
9e8585faf1
@ -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',
|
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',
|
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',
|
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
|
# 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
|
# above the columns, which causes them to effectively be added to the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user