diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-03 08:47:09 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-03 08:47:09 +0300 |
| commit | 33453de97d005082fe1f3ebfd530df07b0f95fec (patch) | |
| tree | 4cbb42ccca19856a9e09487466f837aebe935e6a /lib/html.source.sh | |
| parent | d78949902946a58f440ad9145c94282c1512f3b1 (diff) | |
Add white-space: pre-wrap to all theme pre blocks to prevent horizontal scrollbarsmain
Diffstat (limited to 'lib/html.source.sh')
| -rw-r--r-- | lib/html.source.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/html.source.sh b/lib/html.source.sh index 8a923be..1c3f753 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -337,6 +337,11 @@ html::test () { assert::equals "$(generate::make_link html "$line")" \ "<a href='http://example.org/image.png'><img alt='Image description' title='Image description' src='http://example.org/image.png' /></a><br />" + # Verify all theme CSS files declare white-space: pre-wrap for pre blocks + local css_file + while IFS= read -r css_file; do + assert::contains "$(cat "$css_file")" 'white-space: pre-wrap' + done < <( find ./extras/html/themes -mindepth 2 -maxdepth 2 -name style.css | sort ) local input_block='``` this |
