--- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Sat Jul 31 16:41:42 2010 +0200 +++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Sat Jul 31 17:17:07 2010 +0200 @@ -451,6 +451,7 @@ """ # calculate the indentation string istring = indLevel * indString + estring = os.linesep + indLevel * indString # now generate the code reVar = self.variableLineEdit.text() @@ -465,10 +466,10 @@ code += '{0}{1}.setCaseSensitivity(Qt.CaseInsensitive){2}'.format( istring, reVar, os.linesep) if self.minimalCheckBox.isChecked(): - code += '{0}{1}.setMinimal(1){2}'.format(istring, reVar, os.linesep) + code += '{0}{1}.setMinimal(True){2}'.format(istring, reVar, os.linesep) if self.wildcardCheckBox.isChecked(): code += '{0}{1}.setPatternSyntax(QRegExp.Wildcard){2}'.format( - istring, reVar, os.linesep) + istring, reVar, estring) return code class QRegExpWizardDialog(QDialog):