--- a/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py Sat Jul 31 16:41:42 2010 +0200 +++ b/Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py Sat Jul 31 17:17:07 2010 +0200 @@ -88,6 +88,8 @@ @param indString string used for indentation (space or tab) (string) @return generated code (string) """ + estring = os.linesep + indLevel * indString + # generate the code code = 'QFontDialog.getFont(' if not self.eVariable.text(): @@ -97,6 +99,6 @@ self.font.weight(), self.font.italic()) else: code += self.eVariable.text() - code += '){0}'.format(os.linesep) + code += '){0}'.format(estring) return code