diff -r 6f3b2099858e -r 69aac6eeba9b Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py --- a/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Sat Jul 31 16:41:42 2010 +0200 +++ b/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Sat Jul 31 17:17:07 2010 +0200 @@ -586,6 +586,7 @@ # calculate the indentation string istring = indLevel * indString i1string = (indLevel + 1) * indString + estring = os.linesep + indLevel * indString # now generate the code reVar = self.variableLineEdit.text() @@ -619,8 +620,8 @@ code += '{0} = re.compile(r"""{1}"""'.format( reVar, regexp.replace('"', '\\"')) if flags: - code += ', \\{0}{1}{2}'.format(os.linesep, i1string, flags) - code += '){0}'.format(os.linesep) + code += ', {0}{1}{2}'.format(os.linesep, i1string, flags) + code += '){0}'.format(estring) return code class PyRegExpWizardDialog(QDialog):