Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py

changeset 446
69aac6eeba9b
parent 425
ca5e65413fc5
child 791
9ec2ac20e54e
diff -r 6f3b2099858e -r 69aac6eeba9b Plugins/WizardPlugins/FontDialogWizard/FontDialogWizardDialog.py
--- 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

eric ide

mercurial