From 9e8585faf1b076ec795991ca7f81564e6e934d8d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Nov 2019 10:03:28 +0530 Subject: [PATCH] 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) --- src/pyj/read_book/paged_mode.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/read_book/paged_mode.pyj b/src/pyj/read_book/paged_mode.pyj index 84918b18e8..fb7c2a6179 100644 --- a/src/pyj/read_book/paged_mode.pyj +++ b/src/pyj/read_book/paged_mode.pyj @@ -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