-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
reader/word2007/abstract::readParagraph
if ($runLinkCount > 1) should create only one textRun as parent, but it created so many
the following change may work well
@@ -167,11 +167,14 @@ abstract class AbstractPart
$parent->addTextBreak(null, $paragraphStyle);
} else {
$nodes = $xmlReader->getElements('*', $domNode);
+ if($runLinkCount > 1){
+ $parent = $parent->addTextRun($paragraphStyle);
+ }
foreach ($nodes as $node) {
$this->readRun(
$xmlReader,
$node,
- ($runLinkCount > 1) ? $parent->addTextRun($paragraphStyle) : $parent,
+ $parent,
$docPart,
$paragraphStyle
);
xuxiaoshuo, ijames07 and yt7260