During my editing of dynoplot.py, I noticed that there were some
whitespace issues. Normally I consider whitespace a bikeshedding
topic, but in python, it is significant, so it matters. When tabs and
spaces are mixed, our own personal settings for how tabs are displayed
in an editor makes a huge
David,
Oh, the joys of open-source. Here's my solution for you:
(1) load your file in your favorite editor
(2) determine user-desired tab stop setting
(3) convert all tabs to spaces in your editor (or search replace tabs
with X-spaces)
(4) save your file
One warning though, I have seen some
Not much of a help, but WingIDE Professional Edition has a very good
indentation manager, which takes care of the mixed/space tab issues. If you are
working in python frequently it is a worthwhile investment.
Cheers,
Carsten
-Original Message-
From: Jason Vertrees
If you have a lot of files to do this to, I would suggest learning at
least a little bit of perl. It might not be as nice an option as a
python tab manager (depending on your point of view), though.
Perl uses regular expressions. In case you'd like to see how to do
your tab-space replacement,
Try the expand command on linux or google for sed tab to space
replacement.
Marius
On Tue, Jan 26, 2010 at 5:48 PM, Michael Zimmermann micha...@iastate.eduwrote:
If you have a lot of files to do this to, I would suggest learning at
least a little bit of perl. It might not be as nice an option
Hi,
On Tue, 26 Jan 2010 10:48:58 -0600 Michael Zimmermann micha...@iastate.edu
wrote:
If you have a lot of files to do this to, I would suggest learning at
least a little bit of perl. It might not be as nice an option as a
python tab manager (depending on your point of view), though.
Or