New indentation code in KDevelop 2

Eray Ozkural (exa) erayo at cs.bilkent.edu.tr
Sat Dec 8 16:40:05 UTC 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 08 December 2001 17:19, you wrote:
>
> >    if (textLine->getChar(textLine->lastChar())=='}') // closing brace
> >      indentPos -= indentLength;
>
> I did only the open brace, but yes, closed brace might be done too. I've
> got to think how that could be done.
>
> That should be firstChar() rather than lastChar() it seems.

I added a closing brace indentation. Check it out.

Thanks,

- -- 
Eray Ozkural (exa) <erayo at cs.bilkent.edu.tr>
Comp. Sci. Dept., Bilkent University, Ankara
www: http://www.cs.bilkent.edu.tr/~erayo
GPG public key fingerprint: 360C 852F 88B0 A745 F31B  EA0F 7C07 AE16 874D 539C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8EjNxfAeuFodNU5wRAt4PAJ9mznozm2Q9afBXuCn2YzOHiyoa+wCeL5Qz
e/I1PZnCQDpdaNAVzHWONPo=
=+s6x
-----END PGP SIGNATURE-----




More information about the KDevelop-devel mailing list