Overview
Comment: | [core] remove useless code: don’t delete token position |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | core |
Files: | files | file ages | folders |
SHA3-256: |
2a8cbe13beff8661a78336a1835b81cd |
User & Date: | olr on 2020-08-28 09:00:25 |
Other Links: | manifest | tags |
Context
2020-08-28
| ||
09:36 | [core] fix unnoticed bug: getCleanText check-in: 050f94978a user: olr tags: trunk, core | |
09:00 | [core] remove useless code: don’t delete token position check-in: 2a8cbe13be user: olr tags: trunk, core | |
08:54 | [fr] ajustements check-in: 738355f312 user: olr tags: trunk, fr | |
Changes
Modified gc_core/js/lang_core/gc_engine.js from [1328582cce] to [f27b4f4d8a].
︙ | |||
1006 1007 1008 1009 1010 1011 1012 | 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 | - - - - - - - - - | oToken["sValue"] = oToken["sNewValue"]; let nDiffLen = oToken["sRealValue"].length - oToken["sNewValue"].length; let sNewRepl = (nDiffLen >= 0) ? oToken["sNewValue"] + " ".repeat(nDiffLen) : oToken["sNewValue"].slice(0, oToken["sRealValue"].length); this.sSentence = this.sSentence.slice(0,oToken["nStart"]) + sNewRepl + this.sSentence.slice(oToken["nEnd"]); delete oToken["sNewValue"]; } } |
︙ |
Modified gc_core/py/lang_core/gc_engine.py from [472d04d897] to [781f6b8833].
︙ | |||
859 860 861 862 863 864 865 | 859 860 861 862 863 864 865 866 867 868 869 | - - - - - - | echo(dToken["sValue"] + " -> " + dToken["sNewValue"]) dToken["sRealValue"] = dToken["sValue"] dToken["sValue"] = dToken["sNewValue"] nDiffLen = len(dToken["sRealValue"]) - len(dToken["sNewValue"]) sNewRepl = (dToken["sNewValue"] + " " * nDiffLen) if nDiffLen >= 0 else dToken["sNewValue"][:len(dToken["sRealValue"])] self.sSentence = self.sSentence[:dToken["nStart"]] + sNewRepl + self.sSentence[dToken["nEnd"]:] del dToken["sNewValue"] |