From: Alexander Ebert Date: Sun, 29 Mar 2015 22:59:01 +0000 (+0200) Subject: Don't strip trailing newline X-Git-Tag: 2.1.3~58 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22f8f1812cc047e2bdc3e2d273a5bfc8c4da4236;p=GitHub%2FWoltLab%2FWCF.git Don't strip trailing newline --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index d56dd92d82..06718ba9aa 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -932,7 +932,7 @@ RedactorPlugins.wbbcode = function() { }).bind(this)); // [align] - data = data.replace(/\[align=(left|right|center|justify)\]([\s\S]*?)\[\/align\]\n?/gi, (function(match, alignment, content) { + data = data.replace(/\[align=(left|right|center|justify)\]([\s\S]*?)\[\/align\]/gi, (function(match, alignment, content) { return this.wbbcode._expandFormatting(content, '

', '

'); }).bind(this));