Adding strip as the github actions were not picking up text with extra spaces

CURA-10901
This commit is contained in:
Saumya Jain 2024-04-10 14:53:49 +02:00
parent 3987969a22
commit 84f90eadf8

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