summaryrefslogtreecommitdiff
path: root/lib/html.source.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/html.source.sh')
-rw-r--r--lib/html.source.sh5
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