From d48d390ff658ae541c976dabd84c8c7a0e22498a Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 19 Feb 2015 14:56:32 +0100 Subject: [PATCH] Fixed superfluous newline after [/align] --- wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index ea6c0bef11..b3e84c7d56 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -824,7 +824,7 @@ RedactorPlugins.wbbcode = function() { }).bind(this)); // [align] - data = data.replace(/\[align=(left|right|center|justify)\]([\s\S]*?)\[\/align\]/gi,'
$2
'); + data = data.replace(/\[align=(left|right|center|justify)\]([\s\S]*?)\[\/align\]\n?/gi,'
$2
'); // search for [*] not preceeded by [list by searching for the first occurence of [list and then check the left var $firstList = data.indexOf('[list'); -- 2.20.1