From 6b24f401cfce32214caab6d79549b4ee50f566f5 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 19 Jun 2021 11:09:59 +0100 Subject: new default css style - dont display img descriptions above the image anymore --- lib/assert.source.sh | 2 +- lib/gemfeed.source.sh | 2 +- lib/html.source.sh | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/assert.source.sh b/lib/assert.source.sh index d53a728..a1713c3 100644 --- a/lib/assert.source.sh +++ b/lib/assert.source.sh @@ -53,7 +53,7 @@ assert::shellcheck () { --norc \ --external-sources \ --check-sourced \ - --exclude=SC2155,SC2010,SC2154,SC1090,SC2012 \ + --exclude=SC2155,SC2010,SC2154,SC1090,SC2012,SC2016 \ ./"$0" set +e } diff --git a/lib/gemfeed.source.sh b/lib/gemfeed.source.sh index eba9384..702c510 100644 --- a/lib/gemfeed.source.sh +++ b/lib/gemfeed.source.sh @@ -51,7 +51,7 @@ GEMFEED # Extract the date from the file name, and also get the word count. local filename_date=$(basename "$gemfeed_dir/$gmi_file" | cut -d- -f1,2,3) - local words=$(printf %04d $(gemfeed::_get_word_count "$gemfeed_dir/$gmi_file")) + local words=$(printf %04d "$(gemfeed::_get_word_count "$gemfeed_dir/$gmi_file")") echo "=> ./$gmi_file $filename_date ($words words) - $title" >> \ "$gemfeed_dir/index.gmi.tmp" diff --git a/lib/html.source.sh b/lib/html.source.sh index 6049c2f..a7e7717 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -37,7 +37,6 @@ html::make_img () { if [ -z "$descr" ]; then echo -n "" else - echo -n "$descr:" echo -n "\"$descr\"" fi @@ -158,5 +157,5 @@ html::test () { line='=> http://example.org/image.png Image description' assert::equals "$(generate::make_link html "$line")" \ - 'Image description:Image description
' + 'Image description
' } -- cgit v1.2.3