From: Fabio Z. <fa...@gm...> - 2006-05-15 22:33:57
|
Fixed for 1.0.7 On 5/15/06, Don Taylor <nos...@gm...> wrote: > > Fabio: > > I am having some problems with indenting in a Jython file. > > After I hit <enter> on some lines the editor places the indent about 28 > characters in on the next line - it does not seem to align with anything > obvious. If I then hit backspace then the cursor goes back 4 characters > at a time but not to anywhere useful. I have to backspace enough and > then enter some spaces to get to where I want to be. > > The following is a fragment of this file that exhibits this behaviour: > > class Paragrapher: > def _analyzeLine(self, line): > pattern =3D r'''(\s*#\s*|\s*"""\s*|''' \ > + r"""\s*'''\s*|""" \ > + r'''\s*"\s*|''' \ > + r"""\s*'\s*|s*)""" > compiledRe =3D re.compile(pattern) > matched =3D compiledRe.match(line) > leadingString =3D line[0:matched.end()] > mainText =3D line[matched.end():] > > Try hitting enter on the last line. > > Don. > > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat= =3D121642 > _______________________________________________ > Pydev-users mailing list > Pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-users > |