fix: node-copy from a library entry unifies CRLF; smoke seeds a real CRLF entry (M-1, M-2/M-19)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -139,6 +139,11 @@ final class DiviNodeCopyAbility extends DiviWriteAbility
|
||||
}
|
||||
|
||||
$copy = $node->copy();
|
||||
if ($source->isLibraryItem()) {
|
||||
// Finding 9: library entries from Divi's dialog use CRLF; unified before every takeover
|
||||
// (LibraryContent::load), as lit-library-insert and lit/library-save do.
|
||||
$copy->unifyLineBreaks();
|
||||
}
|
||||
$problems = $composition->storedGuard()->problems($copy);
|
||||
if ($problems !== []) {
|
||||
return Errors::invalidInput(
|
||||
|
||||
Reference in New Issue
Block a user