1
0
forked from IPKM/nmreval

escape backslashes in fit function equation

This commit is contained in:
Dominik Demuth 2023-10-17 18:16:31 +02:00
parent 37a6d789bb
commit 6339bdc2cc

View File

@ -472,7 +472,7 @@ class DescWidget(QtWidgets.QWidget):
stringi = f'class {self.klass_lineedit.text()}:\n' \ stringi = f'class {self.klass_lineedit.text()}:\n' \
f' name = {self.name_lineedit.text()!r}\n' \ f' name = {self.name_lineedit.text()!r}\n' \
f' type = {self.group_lineedit.text()!r}\n' \ f' type = {self.group_lineedit.text()!r}\n' \
f' equation = {self.eq_lineedit.text()!r}\n' f" equation = r'{self.eq_lineedit.text()}'\n"
return stringi return stringi