From: Alexander Ebert Date: Thu, 19 Feb 2015 13:56:32 +0000 (+0100) Subject: Fixed superfluous newline after [/align] X-Git-Tag: 2.1.0_RC_2~26 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d48d390ff658ae541c976dabd84c8c7a0e22498a;p=GitHub%2FWoltLab%2FWCF.git Fixed superfluous newline after [/align] --- 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');