diff options
| author | Paul Buetow <paul@buetow.org> | 2023-07-23 21:51:56 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2023-07-23 21:51:56 +0300 |
| commit | 625d9ac44074a31140fb88d40153e216f8c8bd67 (patch) | |
| tree | 6d61dd03807d67fe55eb0877aab16a7aa2dd57ef /lib/html.source.sh | |
| parent | 065a9d2010dba0462cf068a003f3e07f8c63908c (diff) | |
typo
Diffstat (limited to 'lib/html.source.sh')
| -rw-r--r-- | lib/html.source.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/html.source.sh b/lib/html.source.sh index 371866a..6c5fd36 100644 --- a/lib/html.source.sh +++ b/lib/html.source.sh @@ -71,12 +71,12 @@ html::make_link () { descr="$link" fi - local mastadon_verify='' - if [[ "$link" = "$MASTADON_URI" ]]; then - mastadon_verify=" rel='me'" + local mastodon_verify='' + if [[ "$link" = "$MASTODON_URI" ]]; then + mastodon_verify=" rel='me'" fi - echo "<a class='textlink' href='$(html::encode "$link")'$mastadon_verify>$descr</a><br />" + echo "<a class='textlink' href='$(html::encode "$link")'$mastodon_verify>$descr</a><br />" } html::process_inline () { @@ -197,7 +197,7 @@ $line" # Test default HTML variant. html::test::default () { - MASTADON_URI='' + MASTODON_URI='' local line='Hello world! This is a paragraph.' assert::equals "$(html::make_paragraph "$line")" '<p>Hello world! This is a paragraph.</p>' @@ -234,12 +234,12 @@ html::test::default () { assert::equals "$(generate::make_link html "$line")" \ "<a class='textlink' href='http://example.org'>Description of the link</a><br />" - # Test Mastadon verification. - MASTADON_URI='https://fosstodon.org/@snonux' - line='=> https://fosstodon.org/@snonux Me at Mastadon' + # Test Mastodon verification. + MASTODON_URI='https://fosstodon.org/@snonux' + line='=> https://fosstodon.org/@snonux Me at Mastodon' assert::equals "$(generate::make_link html "$line")" \ - "<a class='textlink' href='https://fosstodon.org/@snonux' rel='me'>Me at Mastadon</a><br />" - MASTADON_URI='' + "<a class='textlink' href='https://fosstodon.org/@snonux' rel='me'>Me at Mastodon</a><br />" + MASTODON_URI='' line='=> http://example.org/image.png' assert::equals "$(generate::make_link html "$line")" \ |
