The .json file doesn't show replacement text so trying to get that

This commit is contained in:
Saumya Jain 2024-04-10 14:25:01 +02:00
parent 2fa3baac23
commit 8d878f124b

View File

@ -95,7 +95,7 @@ class Formulas(Linter):
if len(found.group().splitlines()) > 1:
self._replacement_text = ''
else:
self._replacement_text = found.group().replace(incorrectString, self._correct_formula)
self._replacement_text = found.group().replace(incorrectString, self._correct_formula).strip(' ')
return found