Grammalecte  Diff

Differences From Artifact [4e48beeec8]:

To Artifact [259ba70a2c]:


808
809
810
811
812
813
814

815

816
817
818
819
820
821
822
808
809
810
811
812
813
814
815

816
817
818
819
820
821
822
823







+
-
+







                if bUppercase:
                    sWhat = sWhat[0:1].upper() + sWhat[1:]
                self.lToken[nTokenRewriteStart]["sNewValue"] = sWhat
            else:
                # several tokens
                lTokenValue = sWhat.split("|")
                if len(lTokenValue) != (nTokenRewriteEnd - nTokenRewriteStart + 1):
                    if (bDebug):
                    echo("Error. Text processor: number of replacements != number of tokens.")
                        echo("Error. Text processor: number of replacements != number of tokens.")
                    return
                for i, sValue in zip(range(nTokenRewriteStart, nTokenRewriteEnd+1), lTokenValue):
                    if not sValue or sValue == "*":
                        self.lToken[i]["bToRemove"] = True
                    else:
                        if bUppercase:
                            sValue = sValue[0:1].upper() + sValue[1:]