From: Alexander Ebert Date: Thu, 27 Aug 2015 11:39:53 +0000 (+0200) Subject: Fixed newline handling in list items X-Git-Tag: 2.1.7~19^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e72a8b36569e6157a5003420cacedb56be67d38f;p=GitHub%2FWoltLab%2FWCF.git Fixed newline handling in list items --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 89c1b6aaff..ac02fb6be6 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -1187,7 +1187,7 @@ RedactorPlugins.wbbcode = function() { // line-breaks within list items must be a
instead of

var $listItems = [ ]; data = data.replace(/(
  • [\s\S]*?<\/li>)/g, function(match) { - match = $.trim(match).replace(/\n/, '
    '); + match = $.trim(match).replace(/\n/g, '
    '); var $key = WCF.getUUID(); $listItems.push({