From 0bb2bdcbe3e076dbefcec80cd7dee65d396f5073 Mon Sep 17 00:00:00 2001 From: Philipp Zumstein Date: Mon, 19 Mar 2018 07:35:49 +0100 Subject: [PATCH] Replace p tag with two line breaks in ZU.cleanTags (#1465) --- chrome/content/zotero/xpcom/utilities.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 8a14685132..824af00702 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -299,6 +299,7 @@ Zotero.Utilities = { } x = x.replace(/]*>/gi, "\n"); + x = x.replace(/<\/p>/gi, "\n\n"); return x.replace(/<[^>]+>/g, ""); },