From 8241e3a550f1eb18ed7d955dd0ebda9a4e3bc7d6 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 3 Mar 2015 21:41:35 +0100 Subject: [PATCH] browser: convert windows line breaks in notes Fix trailing period detection. --- browser.plp | 1 + 1 file changed, 1 insertion(+) 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($_); -- 2.30.0