mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
Changeset: Replace appendATextToAssembler()
with a generator
This commit is contained in:
parent
9cd59a84af
commit
d74dd235a4
5 changed files with 26 additions and 10 deletions
|
@ -499,7 +499,7 @@ Pad.prototype.copyPadWithoutHistory = async function (destinationID, force) {
|
|||
|
||||
// based on Changeset.makeSplice
|
||||
const assem = Changeset.smartOpAssembler();
|
||||
Changeset.appendATextToAssembler(oldAText, assem);
|
||||
for (const op of Changeset.opsFromAText(oldAText)) assem.append(op);
|
||||
assem.endDocument();
|
||||
|
||||
// although we have instantiated the newPad with '\n', an additional '\n' is
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue