Skip to content

Commit 33739ea

Browse files
committed
cannot add list on textrun
1 parent 46476d7 commit 33739ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Shared/Html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ private static function parseCell($node, $element, &$styles)
366366
*/
367367
private static function shouldAddTextRun(\DOMNode $node)
368368
{
369-
$containsBlockElement = self::$xpath->query('.//table|./p', $node)->length > 0;
369+
$containsBlockElement = self::$xpath->query('.//table|./p|./ul|./li', $node)->length > 0;
370370
if ($containsBlockElement) {
371371
return false;
372372
}

0 commit comments

Comments
 (0)