You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LI tag with inline style ""text-align:justify" does not justify text inside LI element.
Steps to Reproduce
<ol><listyle="text-align:justify;">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam..</li></ol>
Possible solution
/PhpWord/Shared/Html.php
protectedstaticfunctionparseListItem($node, $element, &$styles, $data)
{
$cNodes = $node->childNodes;
if (!empty($cNodes)) {
/*FIX issue with incorrect style parsing of LI element*/$styles['paragraph'] = self::recursiveParseStylesInHierarchy($node, $styles['paragraph']);
/**/$listRun = $element->addListItemRun($data['listdepth'], $styles['list'], $styles['paragraph']);
foreach ($cNodesas$cNode) {
self::parseNode($cNode, $listRun, $styles, $data);
}
}
}
Context
PHP Version: 7.3.1
PHPWord Version: 0.18.3
The text was updated successfully, but these errors were encountered:
Describe the Bug
LI tag with inline style ""text-align:justify" does not justify text inside LI element.
Steps to Reproduce
Possible solution
/PhpWord/Shared/Html.php
Context
The text was updated successfully, but these errors were encountered: