git.shiar.nl
/
sheet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
browser: strip link urls from cell titles
[sheet.git]
/
browser.plp
diff --git
a/browser.plp
b/browser.plp
index 85ed1565f1d41435d08bf2fcf226221f5a54259c..de245b8159a8af06e56b140ccfe0dab3d24cbc38 100644
(file)
--- a/
browser.plp
+++ b/
browser.plp
@@
-311,6
+311,15
@@
sub formatnotes {
return @html;
}
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};
sub saytitlecol {
my ($id) = @_;
my $row = $caniuse->{data}->{$id};
@@
-396,7
+405,7
@@
sub saybrowsercols {
map { split / /, $_ }
$prev
));
map { split / /, $_ }
$prev
));
- $title .= "\n
".EscapeHTML($_) for @notes
;
+ $title .= "\n
$_" for notestotitle(@notes)
;
printf('<td class="%s" colspan="%d" title="%s">%s',
join(' ',
printf('<td class="%s" colspan="%d" title="%s">%s',
join(' ',