@@ -28,7 +28,7 @@ def patch_wider_resource_listing():
2828 data_res_item = path_template_res_item .read_text ()
2929 # This makes the browser force a line-break even inside a word,
3030 # which means that it breaks long filenames.
31- st = 'style="word -wrap: break-word"'
31+ st = 'style="overflow -wrap: break-word"'
3232 for old , new in [
3333 # remove the truncate filter for file names
3434 ("| truncate(50)" , "" ),
@@ -44,7 +44,7 @@ def patch_wider_resource_listing():
4444 data_res = path_template_res .read_text ()
4545 # This makes the browser force a line-break even inside a word,
4646 # which means that it breaks long filenames.
47- st = 'style="word -wrap: break-word"'
47+ st = 'style="overflow -wrap: break-word"'
4848 for old , new in [
4949 # remove the truncate filter for file names
5050 ("|truncate(25)" , "" ),
@@ -53,7 +53,7 @@ def patch_wider_resource_listing():
5353 f'<a { st } href="' ),
5454 ('<a class="flex-fill" href="' ,
5555 f'<a class="flex-fill" { st } href="' ),
56- # remove d-flex which breaks the word -wrap hack
56+ # remove d-flex which breaks the overflow -wrap hack
5757 ('<li class="nav-item d-flex justify-content-between position-relative">' , # noqa: E501
5858 '<li class="nav-item justify-content-between position-relative">'
5959 ),
0 commit comments