summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-05-18 13:33:49 +0300
committerPaul Buetow <paul@buetow.org>2024-05-18 13:33:49 +0300
commit28087df0b79f7e83edb362b4694789828f11c496 (patch)
tree94ca5ad84817eb59174a11e47000d4bd1e928eb0 /lib
parent39f4e45e535efd2157a3f95258ef7df03a006c13 (diff)
move fonts into fonts dir
Diffstat (limited to 'lib')
-rw-r--r--lib/html.source.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/html.source.sh b/lib/html.source.sh
index daa4224..1666239 100644
--- a/lib/html.source.sh
+++ b/lib/html.source.sh
@@ -131,10 +131,10 @@ html::source_highlight () {
echo '</pre>'
else
local style_css
- if [ ! -z "$SOURCE_HIGHLIGHT_CSS" ]; then
+ if [ -n "$SOURCE_HIGHLIGHT_CSS" ]; then
style_css="--style-css-file=$SOURCE_HIGHLIGHT_CSS"
fi
- $SOURCE_HIGHLIGHT --src-lang="$language" $style_css <<< "$bare_text" |
+ $SOURCE_HIGHLIGHT --src-lang="$language" "$style_css" <<< "$bare_text" |
$SED 's|<tt>||; s|</tt>||;'
fi
}