Created attachment 56953 [details] Example python code with folding corruption Version: unspecified (using KDE 4.6.0) OS: Linux Reproducible: Didn't try Steps to Reproduce: I create a python class with lots of nested 'if True:', 'elif True:', 'else:'. For Now is OK. Next copy paste the class lots of time. At the third and the next class folding is bad. The same result exists on kdevelop and kate. My os: Ubuntu 10.10 with fresh kde 4.6.
Hello Folding your python example works fine at least for me. It would be nice if you add a screenshot.
Created attachment 58486 [details] Proof Try to collapse on line 53
Can to some degree reproduce wrong folds after folding the first two classes. But this works as expected in the development version (KDE 4.8). Can you please build Kate from sources (no worries, very easy!) according to http://kate-editor.org/get-it/ and report back? Meanwhile, I close the report.
I got kate from git as described http://kate-editor.org/get-it/ Folding works good.
Thanks for the feedback!