diff options
| author | Paul Buetow <git@mx.buetow.org> | 2021-06-19 11:09:59 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-06-19 11:09:59 +0100 |
| commit | 6b24f401cfce32214caab6d79549b4ee50f566f5 (patch) | |
| tree | 1583155248624ff069cebd2d1e50b235a5f01c98 /lib | |
| parent | dfca7068e834ceff944d79ce4e4c7b3c14b94f91 (diff) | |
new default css style - dont display img descriptions above the image anymore
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/assert.source.sh | 2 | ||||
| -rw-r--r-- | lib/gemfeed.source.sh | 2 | ||||
| -rw-r--r-- | lib/html.source.sh | 3 |
3 files changed, 3 insertions, 4 deletions
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 "<a href=\"$link\"><img src=\"$link\" /></a>" else - echo -n "<i>$descr:</i>" echo -n "<a href=\"$link\"><img alt=\"$descr\" title=\"$descr\" src=\"$link\" /></a>" fi @@ -158,5 +157,5 @@ html::test () { line='=> http://example.org/image.png Image description' assert::equals "$(generate::make_link html "$line")" \ - '<i>Image description:</i><a href="http://example.org/image.png"><img alt="Image description" title="Image description" src="http://example.org/image.png" /></a><br />' + '<a href="http://example.org/image.png"><img alt="Image description" title="Image description" src="http://example.org/image.png" /></a><br />' } |
