This commit is contained in:
Javier Casares 2026-08-17 17:56:43 +00:00
commit 3a25585090
42 changed files with 1124 additions and 711 deletions

View file

@ -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);
}
}