Changeset: Require Op opcode and attribs to be strings

This commit is contained in:
Richard Hansen 2021-10-03 04:47:29 -04:00
parent 0ae8fb1441
commit 9c17b03660
2 changed files with 5 additions and 3 deletions

View file

@ -92,7 +92,7 @@ const makeContentCollector = (collectStyles, abrowser, apool, className2Author)
attribsBuilder = Changeset.smartOpAssembler();
},
textOfLine: (i) => textArray[i],
appendText: (txt, attrString) => {
appendText: (txt, attrString = '') => {
textArray[textArray.length - 1] += txt;
op.attribs = attrString;
op.chars = txt.length;