From e72a8b36569e6157a5003420cacedb56be67d38f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 27 Aug 2015 13:39:53 +0200 Subject: [PATCH] Fixed newline handling in list items --- 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 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({ -- 2.20.1