From 2577daa3b6d4c10fad66ff3ca040cd56c1cecea8 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 8 Dec 2016 21:08:34 +0100 Subject: [PATCH] Fixed incorrect behavior for empty lists --- .../html/metacode/converter/ListMetacodeConverter.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php index 449a296ed8..eee4f0a6fe 100644 --- a/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php +++ b/wcfsetup/install/files/lib/system/html/metacode/converter/ListMetacodeConverter.class.php @@ -132,7 +132,8 @@ class ListMetacodeConverter extends AbstractMetacodeConverter { } } - if ($isEmpty) { + // discard the
  • unless it is the only one + if ($isEmpty && $childNode->parentNode->firstChild !== $childNode) { DOMUtil::removeNode($childNode); } } -- 2.20.1