From: Mischa POSLAWSKY Date: Tue, 3 Mar 2015 20:41:35 +0000 (+0100) Subject: browser: convert windows line breaks in notes X-Git-Tag: v1.7~65 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/8241e3a550f1eb18ed7d955dd0ebda9a4e3bc7d6 browser: convert windows line breaks in notes Fix trailing period detection. --- diff --git a/browser.plp b/browser.plp index 5e359b4..652f6a9 100644 --- a/browser.plp +++ b/browser.plp @@ -300,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($_);