From 6339bdc2ccfe8779267e03a0f042eb03fa4d711f Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Tue, 17 Oct 2023 18:16:31 +0200 Subject: [PATCH] escape backslashes in fit function equation --- src/gui_qt/fit/function_creation_dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui_qt/fit/function_creation_dialog.py b/src/gui_qt/fit/function_creation_dialog.py index 41d9363..80735f6 100644 --- a/src/gui_qt/fit/function_creation_dialog.py +++ b/src/gui_qt/fit/function_creation_dialog.py @@ -472,7 +472,7 @@ class DescWidget(QtWidgets.QWidget): stringi = f'class {self.klass_lineedit.text()}:\n' \ f' name = {self.name_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