Bug 398840

Summary: Python code folding broken as of 17.12.3
Product: [Applications] kate Reporter: Alan Prescott <alanjprescott>
Component: foldingAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: 17.12.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alan Prescott 2018-09-19 15:54:57 UTC
This appears to be a problem where opening and closing braces are on the same line, the folding algorithm then marks this as foldable when it's obviously not.
e.g.
[code]
my_empty_list = []
[\code]
is shown as foldable.

A problem is that this also overrides the folding for class and def statements so that they are not foldable as a block

openSUSE Leap 15.0, kate 17.12.3
Comment 1 Christoph Feck 2018-09-19 21:41:47 UTC

*** This bug has been marked as a duplicate of bug 398671 ***