space/tab conversion utility?

Pierre-Frédéric Caillaud peufeu at free.fr
Thu Jul 29 02:40:57 EDT 2004


	- Open file in editor which uses tabs (like Scite set to use tabs)
	- Ctrl-A
	- Tab
	- Shift-Tab
	- Et voilà...

	This just indents and dedents the whole program. A side-effect is that  
the editor converts spaces to tabs. It also works the other way.

	If your program is worrectly indented, it'll stay that way with tabs.

On 28 Jul 2004 21:49:34 GMT, Grant Edwards <grante at visi.com> wrote:

> Is there any utility to convert Python sources from space-based
> block indentation to tab-based?
>
> You can use "expand" convert from tabs->spaces, but "unexpand"
> isn't bright enough to do the reverse.
>




More information about the Python-list mailing list