Fixed the dialog code creation code to respect PEP-8 rules.

Sun, 19 Jun 2011 19:50:04 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 19 Jun 2011 19:50:04 +0200
changeset 1132
f8275b31dbe5
parent 1131
7781e396c903
child 1133
564b52bf5ea7

Fixed the dialog code creation code to respect PEP-8 rules.

Project/CreateDialogCodeDialog.py file | annotate | diff | comparison | revisions
--- a/Project/CreateDialogCodeDialog.py	Sun Jun 19 19:36:27 2011 +0200
+++ b/Project/CreateDialogCodeDialog.py	Sun Jun 19 19:50:04 2011 +0200
@@ -355,6 +355,9 @@
                     del sourceImpl[-1]
             else:
                 appendAtIndex = cls.endlineno - 1
+                while not sourceImpl[appendAtIndex].strip():
+                    appendAtIndex -= 1
+                appendAtIndex += 1
             
             # determine indent string
             for line in sourceImpl[cls.lineno:cls.endlineno + 1]:

eric ide

mercurial