Grammalecte  Diff

Differences From Artifact [137acfaece]:

To Artifact [27ba96b762]:


966
967
968
969
970
971
972

973
974
975
976
977
978
979

    setParagraph (iParagraph, sText) {
        this.dParagraph.set(iParagraph, sText);
    }

    loadText (sText) {
        if (typeof(sText) === "string") {

            let i = 0;
            let iStart = 0;
            let iEnd = 0;
            sText = sText.replace(/\r\n/g, "\n").replace(/\r/g, "\n").normalize("NFC");
            while ((iEnd = sText.indexOf("\n", iStart)) !== -1) {
                this.dParagraph.set(i, sText.slice(iStart, iEnd));
                i++;







>







966
967
968
969
970
971
972
973
974
975
976
977
978
979
980

    setParagraph (iParagraph, sText) {
        this.dParagraph.set(iParagraph, sText);
    }

    loadText (sText) {
        if (typeof(sText) === "string") {
            this.dParagraph.clear();
            let i = 0;
            let iStart = 0;
            let iEnd = 0;
            sText = sText.replace(/\r\n/g, "\n").replace(/\r/g, "\n").normalize("NFC");
            while ((iEnd = sText.indexOf("\n", iStart)) !== -1) {
                this.dParagraph.set(i, sText.slice(iStart, iEnd));
                i++;