Fixed nested lists causing superfluous trailing newlines
authorAlexander Ebert <ebert@woltlab.com>
Sat, 20 Dec 2014 00:06:01 +0000 (01:06 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 20 Dec 2014 00:06:01 +0000 (01:06 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index c2e85cb90aa843a5424b99db42fd9a6c024fb7a3..412098ec9465b3c2a65f0cc7e6a04567dd4c194a 100644 (file)
@@ -753,7 +753,7 @@ RedactorPlugins.wbbcode = function() {
                        data = data.replace(/\[list=1\]/gi, '<ul style="list-style-type: decimal">');
                        data = data.replace(/\[list=a\]/gi, '<ul style="list-style-type: lower-latin">');
                        data = data.replace(/\[list=(none|circle|square|disc|decimal|lower-roman|upper-roman|decimal-leading-zero|lower-greek|lower-latin|upper-latin|armenian|georgian)\]/gi, '<ul style="list-style-type: $1">');
-                       data = data.replace(/\[\/list]\n?/gi, '</ul>\n');
+                       data = data.replace(/\[\/list\]/gi, '</ul>');
                        
                        // trim whitespaces within [table]
                        data = data.replace(/\[table\]([\S\s]*?)\[\/table\]/gi, function(match, p1) {