From 10212c39990784bdcab58b1d334ff6d378608536 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 15 Oct 2016 16:34:22 +0200 Subject: [PATCH] Slightly improved code --- .../files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 2 +- .../files/lib/system/html/input/HtmlInputProcessor.class.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 79cc34967c..38346dcc00 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -162,7 +162,7 @@ $.Redactor.prototype.WoltLabClean = function() { this.clean.convertTags = (function(html, data) { var div = elCreate('div'); div.innerHTML = html; - console.debug(html); + // reset tag storage storage = []; diff --git a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php index a17539ee31..2daf141d14 100644 --- a/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/HtmlInputProcessor.class.php @@ -197,9 +197,9 @@ class HtmlInputProcessor extends AbstractHtmlProcessor { $openParagraph = false; } - // ignore two newline because a new paragraph with bbcodes is created + // ignore one newline because a new paragraph with bbcodes is created // using two subsequent newlines - $newlines -= 1; + $newlines--; if ($newlines === 0) { continue; } -- 2.20.1