From: Alexander Ebert Date: Sat, 15 Oct 2016 14:34:22 +0000 (+0200) Subject: Slightly improved code X-Git-Tag: 3.0.0_Beta_3~34 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=10212c39990784bdcab58b1d334ff6d378608536;p=GitHub%2FWoltLab%2FWCF.git Slightly improved code --- 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; }