This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sy12
Recipients rhettinger, sy12
Date 2009-02-02.20:11:54
SpamBayes Score 1.4727714e-08
Marked as misclassified No
Message-id <1233605517.16.0.53101300753.issue5129@psf.upfronthosting.co.za>
In-reply-to
Content
The problem appeared in the initial display, with a file similar to bug.py.

Here is how to reproduce it:
1. open the bug.py file with IDLE 2.5 (or with Firefox from the
bugs.python.org website): the display shows the file the way the
compiler will (probably) see it;
2. open the bug.py file with IDLE 2.6: the line 7 (just after "else:")
is displayed differently.

Summary: IDLE 2.6 doesn't display the indentation that the compiler will
see.

-----------------------------------------
About the secondary problem with Untabify (discovered when trying to
solve the display problem without having to reinstall Python 2.5):

Actually, Untabify is more a solution than a problem, except maybe that
the only safe value is 8 spaces for a tabulation. Using a different
value on legacy code (old code without tests) might add subtle bugs.

According to the Python Language Reference:
"First, tabs are replaced (from left to right) by one to eight spaces
such that the total number of characters up to and including the
replacement is a multiple of eight (this is intended to be the same rule
as used by Unix)."
-----------------------------------------
History
Date User Action Args
2009-02-02 20:11:57sy12setrecipients: + sy12, rhettinger
2009-02-02 20:11:57sy12setmessageid: <1233605517.16.0.53101300753.issue5129@psf.upfronthosting.co.za>
2009-02-02 20:11:55sy12linkissue5129 messages
2009-02-02 20:11:54sy12create