Skip to content

Commit d87093f

Browse files
committed
docs: comment code
1 parent 7fa2ef1 commit d87093f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

ckanext/dcor_theme/cli/patch_ckan_templates.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ def patch_wider_resource_listing():
2525
# patch resource listing template
2626
path_template_res = ckan_path / "templates/package/snippets/resources.html"
2727
data_res = path_template_res.read_text()
28+
# This makes the browser force a line-break even inside a word,
29+
# which means that it breaks long filenames.
2830
st = 'style="word-wrap: break-word"'
2931
for old, new in [
3032
# remove the truncate filter for file names

0 commit comments

Comments
 (0)