From 22f8f1812cc047e2bdc3e2d273a5bfc8c4da4236 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 30 Mar 2015 00:59:01 +0200 Subject: [PATCH] Don't strip trailing newline --- 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 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)); -- 2.20.1