| 36 | raise SyntaxError("There still is a char to replace in the condition. This must be cleaned up first.") |
| 37 | return text |
| 38 | def cleanArgument(text : str): |
| 39 | text = text.strip() |
| 40 | text = text.replace("[\xa0", "[") |
| 41 | text = text.replace("\xa0]", "]") |
| 42 | text = text.replace("\xa0", " ") |
| 43 | text = text.replace("\u2212", "-") |
| 44 | text = text.replace('−', '-') |
| 45 | if (text.find("\xa0") != -1): |
| 46 | raise SyntaxError("There still is a char to replace in the argument. This must be cleaned up first.") |
| 47 | return text |
| 48 | def cleanComment(text : str): |
| 49 | text = text.strip() |
| 50 | text = text.replace("=\xa0=", "==") |