Grammalecte  Check-in [f3750381d4]

Overview
Comment:[fx][bug] text formatter: fix restructuration
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: f3750381d48a992f3272547585477327fecd70f5bca16b5499ff13986d860820
User & Date: olr on 2019-05-25 12:14:00
Other Links: manifest | tags
Context
2019-05-25
13:18
[core][js] gc engine: full analysis, results with sentences, tokens and errors check-in: 9f88778630 user: olr tags: trunk, core
12:14
[fx][bug] text formatter: fix restructuration check-in: f3750381d4 user: olr tags: trunk, fx
12:00
[cli] update doc check-in: aab70a48af user: olr tags: trunk, cli
Changes

Modified gc_lang/fr/webext/content_scripts/panel_gc.js from [137acfaece] to [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++;