X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/ebc74addf8d5d6e200ecc430e6bd553730e10ff5..51a33eb652463f819d957fce06dbef537f01ddc0:/browser.plp diff --git a/browser.plp b/browser.plp index 48bd6e5..652f6a9 100644 --- a/browser.plp +++ b/browser.plp @@ -272,6 +272,7 @@ sub featurescore { while (my ($browser, $versions) = each %$row) { ref $versions eq 'HASH' or next; while (my ($version, $status) = each %$versions) { + $status =~ s/\h\#\d+//; $rank += ($canihas->{$browser}->{$version} || .001) * $PSTATS{$status}; } } @@ -299,6 +300,7 @@ sub featurescore { sub formatnotes { my @html = @_; for (@html) { + s/\r\n?/\n/g; # windows returns s/\h* $//gmx; # trailing whitespace s/(?<= [^.\n]) $/./gmx; # consistently end each line by a period Entity($_);