X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/ebc74addf8d5d6e200ecc430e6bd553730e10ff5..81aefba6ac586eccbe18b4e90efc175e34fff5ad:/browser.plp diff --git a/browser.plp b/browser.plp index 48bd6e5..782bea8 100644 --- a/browser.plp +++ b/browser.plp @@ -6,7 +6,7 @@ no if $] >= 5.018, warnings => 'experimental::smartmatch'; Html({ title => 'browser compatibility cheat sheet', - version => 'v1.2', + version => '1.3', description => [ "Compatibility table of new web features (HTML5, CSS3, SVG, Javascript)", "comparing support and usage share for all popular browser versions.", @@ -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($_);