v1.2.1
This commit is contained in:
parent
7d3fc1969d
commit
3a25585090
42 changed files with 1124 additions and 711 deletions
|
|
@ -89,17 +89,13 @@ final class AdjacentTextMerger
|
|||
return;
|
||||
}
|
||||
|
||||
$s = $first->getLiteral();
|
||||
|
||||
$node = $first->next();
|
||||
$stop = $last->next();
|
||||
while ($node !== $stop && $node instanceof Text) {
|
||||
$s .= $node->getLiteral();
|
||||
$first->append($node->getLiteral());
|
||||
$unlink = $node;
|
||||
$node = $node->next();
|
||||
$unlink->detach();
|
||||
}
|
||||
|
||||
$first->setLiteral($s);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue