https://bugs.kde.org/show_bug.cgi?id=374570

            Bug ID: 374570
           Summary: Folding incorrect for python function with multiline
                    arguments
           Product: kate
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: folding
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: stevemcqu...@mailinator.com
  Target Milestone: ---

Code folding does not work as expected for python functions where the arguments
span multiple lines. It only collapses the arguments themselves (which can be
useful) but not the entire function (which is not useful).

Example:

def test1(foo, bar, baz):
    """folds entire function correctly"""
    print foo

def test2(foo,
          bar,
          baz):
    """only folds the arguments"""
    print foo

def test2(
        foo,
        bar,
        baz):
    """only folds the arguments"""
    print foo

class Foo(object):
    def test1(self, foo, bar):
        """folds correctly"""
        print foo

    def test2(self,
              foo,
              bar):
        """only folds arguments"""
        print foo



Version info:
OS: KDE Neon
Kate: 16.12
KDE Frameworks: 5.29
Qt: 5.7.0

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to