Don't strip trailing newline
authorAlexander Ebert <ebert@woltlab.com>
Sun, 29 Mar 2015 22:59:01 +0000 (00:59 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 29 Mar 2015 22:59:01 +0000 (00:59 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index d56dd92d82845e68a5323925a9de923cbdd44b7e..06718ba9aa90b448661575873a2d37a30663c24a 100644 (file)
@@ -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, '<p style="text-align: ' + alignment + '">', '</p>');
                        }).bind(this));