Tab widths are not applied when opening a file

A extensible, generic scripting IDE
Post Reply
Audiman7
Posts: 1
Joined: Tue May 01, 2007 12:22 am

Tab widths are not applied when opening a file

Post by Audiman7 » Tue May 01, 2007 12:28 am

I have an existing .py file that uses tabs, not spaces. If I open it in ScrIDE the tabs lengths are always 5 chars. I have to go into the preferences and click done. The opened file will then re-adjust its tab lengths. Is there something I am doing wrong or is it just an open issue?

Thanks

gandreas
Immortal
Posts: 1464
Joined: Wed Feb 04, 2004 6:02 pm
Contact:

Post by gandreas » Tue May 01, 2007 8:53 am

A mix of both.

Python really doesn't like tabs being used (well, IMOH it should be happy with "pure tabs" - mixing tabs and spaces is extremely problematic), so ScrIDE tries to force everything to spaces when it saves (internally, it uses "indents" which look just like tabs).

The whole "massage some indentation scheme into another without breaking it" process, however, has some odd issues (namely, the number of possible ways to handle tabs and spaces seems to be more than one would want to possible iterate, especially when you factor in non fixed width characters).

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest