Index: grammalecte-cli.py ================================================================== --- grammalecte-cli.py +++ grammalecte-cli.py @@ -361,10 +361,14 @@ echo(" ยท {0:20}".format(dSubToken["sValue"])) for sMorph, sLabel in zip(dSubToken["lMorph"], dSubToken["aLabels"]): echo(" {0:40} {1}".format(sMorph, sLabel)) #echo(txt.getReadableErrors(dSentence["lGrammarErrors"], xArgs.width)) else: + if sText.startswith("TEST: "): + sText = sText[6:] + sText = sText.replace("{{", "").replace("}}", "") + sText = re.sub(" ->> .*$", "", sText).rstrip() for sParagraph in txt.getParagraph(sText): if xArgs.textformatter: sParagraph = oTextFormatter.formatText(sParagraph) sRes, _ = oGrammarChecker.getParagraphWithErrors(sParagraph, bEmptyIfNoErrors=xArgs.only_when_errors, nWidth=xArgs.width, bDebug=xArgs.debug) if sRes: