Re: [PyMOL] Whitespacing?

2010-02-01 Thread fukamitka
...@its.jnj.com] Sent: Wednesday, January 27, 2010 1:31 AM To: Jason Vertrees; David Hall Cc: pymol-users Subject: Re: [PyMOL] Whitespacing? 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

Re: [PyMOL] Whitespacing?

2010-02-01 Thread Siv Midtun Hollup
...@its.jnj.com] Sent: Wednesday, January 27, 2010 1:31 AM To: Jason Vertrees; David Hall Cc: pymol-users Subject: Re: [PyMOL] Whitespacing? 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

[PyMOL] Whitespacing?

2010-01-26 Thread David Hall
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

Re: [PyMOL] Whitespacing?

2010-01-26 Thread Jason Vertrees
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

Re: [PyMOL] Whitespacing?

2010-01-26 Thread Schubert, Carsten [PRDUS]
[mailto:jason.vertr...@schrodinger.com] Sent: Tuesday, January 26, 2010 10:10 AM To: David Hall Cc: pymol-users Subject: Re: [PyMOL] Whitespacing? 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

Re: [PyMOL] Whitespacing?

2010-01-26 Thread Michael Zimmermann
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,

Re: [PyMOL] Whitespacing?

2010-01-26 Thread Marius Retegan
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

Re: [PyMOL] Whitespacing?

2010-01-26 Thread Robert Campbell
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