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
*** This bug has been marked as a duplicate of bug 398671 ***