Hi,
I'm using PsPad 4.5.4 to write Python code. I have Auto Indent Mode on and Real
Tabs on with a tab width of 4.
I type in the following code snippet, from top to bottom, always using tabs to
indent (indicated by "->"):
class C:
-> def fn (self):
-> -> pass
On the last line ("pass"), the second indentation is done with 4 spaces, not a
tab character. Since Python uses indentation for code block determination, this
obviously can cause problems.
I think there may be a couple of other situations where PsPad is doing something
similar (indenting with 4 spaces instead of a tab). I've noticed that after
doing a lot of editing on a Python file, I will sometimes have to do a global
search-and-replace of 4 spaces for a tab character (using Regular Expressions)
to fix a few points in the code where this has occurred.
I love PsPad as an editor, and plan to keep using it. I wanted to pass this
information along and see if anyone else had noticed anything similar.
Thanks,
Clay Budin
NYC
--
<http://forum.pspad.com/read.php?2,56873,56873>
PSPad freeware editor http://www.pspad.com