X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/219cb22723b29e968bc740d1f34b3b09265a9c08..442a38fd7f907e3341978a9505ff34f2ddf5764c:/browser.plp diff --git a/browser.plp b/browser.plp index a78e0ec..de245b8 100644 --- a/browser.plp +++ b/browser.plp @@ -90,7 +90,7 @@ print <<'';

Alternate rendition of Fyrd's when can I use... page my ($canihas, $usage); -my $minusage = $get{threshold} // .7; +my $minusage = $get{threshold} // 1; given ($get{usage} // 'wm') { when (!$_) { # none @@ -311,6 +311,15 @@ sub formatnotes { return @html; } +sub notestotitle { + my @notes = @_; + for (@notes) { + EscapeHTML($_); + s{ \[ ([^]]*) \] \( [^)]* \) }{$1}gx; # strip link urls + } + return @notes; +} + sub saytitlecol { my ($id) = @_; my $row = $caniuse->{data}->{$id}; @@ -396,7 +405,7 @@ sub saybrowsercols { map { split / /, $_ } $prev )); - $title .= "\n".EscapeHTML($_) for @notes; + $title .= "\n$_" for notestotitle(@notes); printf('%s', join(' ',