From 33453de97d005082fe1f3ebfd530df07b0f95fec Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 3 Jun 2026 08:47:09 +0300 Subject: Add white-space: pre-wrap to all theme pre blocks to prevent horizontal scrollbars --- lib/html.source.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/html.source.sh') 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")" \ "Image description
" + # 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 -- cgit v1.2.3