]> granicus.if.org Git - python/commitdiff
ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
authorKurt B. Kaiser <kbk@shore.net>
Wed, 9 Aug 2006 20:34:46 +0000 (20:34 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 9 Aug 2006 20:34:46 +0000 (20:34 +0000)
Lib/idlelib/EditorWindow.py
Lib/idlelib/NEWS.txt

index 560e5e7d8992383af81661e0e1ba091a142fb835..6b8ab63ddcf57d92d3359d751873d9753c1ba042 100644 (file)
@@ -1277,13 +1277,13 @@ class EditorWindow(object):
               "Toggle tabs",
               "Turn tabs " + ("on", "off")[self.usetabs] +
               "?\nIndent width " +
-              ("will be", "remains at")[self.usetabs] + " 8.",
+              ("will be", "remains at")[self.usetabs] + " 8." +
+              "\n Note: a tab is always 8 columns",
               parent=self.text):
             self.usetabs = not self.usetabs
-        # Try to prevent mixed tabs/spaces.
-        # User must reset indent width manually after using tabs
-        #      if he insists on getting into trouble.
-        self.indentwidth = 8
+            # Try to prevent inconsistent indentation.
+            # User must change indent width manually after using tabs.
+            self.indentwidth = 8
         return "break"
 
     # XXX this isn't bound to anything -- see tabwidth comments
index 40808c93488d46d681027a71fdcc804aea0f682f..a3ba7384c1f93d1711f6b599cef05237ee4c3753 100644 (file)
@@ -3,6 +3,8 @@ What's New in IDLE 1.2c1?
 
 *Release date: XX-AUG-2006*
 
+- ToggleTab dialog was setting indent to 8 even if cancelled (since 1.2a1).
+
 - When used w/o subprocess, all exceptions were preceded by an error
   message claiming they were IDLE internal errors (since 1.2a1).