X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/70b958bcdf1c8fa7105090135818d7219cec8fa0..887c3bf51abe9f83b4892c48437a7947ebb7fa5d:/browser.plp diff --git a/browser.plp b/browser.plp index 0d4d4e7..a78e0ec 100644 --- a/browser.plp +++ b/browser.plp @@ -107,7 +107,7 @@ given ($get{usage} // 'wm') { }; $usage = $_; my $ref = $canihas->{-title} || 'unknown'; - $ref = sprintf '%s', $_, $ref + $ref = showlink($ref, $_) for $canihas->{-site} || $canihas->{-source} || (); $ref .= " $_" for $canihas->{-date} || (); print "\nwith $ref browser usage statistics"; @@ -339,10 +339,10 @@ sub saytitlecol { say '

'; } printf 'Resources: %s.', join(', ', map { - sprintf '%s', EscapeHTML($_->{url}), EscapeHTML($_->{title}) + showlink($_->{title}, $_->{url}) } @$_) for grep { @$_ } $row->{links} // (); printf '
Parent feature: %s.', join(', ', map { - sprintf '%s', EscapeHTML("#$_"), $caniuse->{data}->{$_}->{title} + showlink($caniuse->{data}->{$_}->{title}, "#$_") } $_) for $row->{parent} || (); print ''; } @@ -353,7 +353,7 @@ sub saystatuscol { for ($row->{status}) { my $cell = $_ // '-'; - $cell = sprintf '%s', $_, $cell for $row->{spec} // (); + $cell = showlink($cell, $_) for $row->{spec} // (); printf '%s', $caniuse->{statuses}->{$_}, $CSTATUS{$_} // '', $cell; }