commit 0bb2bdcbe3e076dbefcec80cd7dee65d396f5073
parent a659c6c6ff04eef211774c26cc2ec03bab6cf43d
Author: Philipp Zumstein <zuphilip@users.noreply.github.com>
Date: Mon, 19 Mar 2018 07:35:49 +0100
Replace p tag with two line breaks in ZU.cleanTags (#1465)
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js
@@ -299,6 +299,7 @@ Zotero.Utilities = {
}
x = x.replace(/<br[^>]*>/gi, "\n");
+ x = x.replace(/<\/p>/gi, "\n\n");
return x.replace(/<[^>]+>/g, "");
},