SublimeOutline icon indicating copy to clipboard operation
SublimeOutline copied to clipboard

bug: messed links when class definition takes several lines (python)

Open vvch opened this issue 6 years ago • 1 comments

When class definition takes more than one string, all following links in outline tab are shifted, e. g. in this example method1 in outline tab jumps to func1, and method2 jumps to nowhere:

class MyTuple(namedtuple("MyTuple", """
    field1 field2 field3
"""):
    def method1():
        pass
    def method2():
        pass
def func1():
    pass

vvch avatar Feb 03 '19 15:02 vvch

I think the best solution is probably to remove any new lines in class definitions. Will see how it can be done. Thank you for reporting the bug.

warmdev avatar Feb 13 '19 00:02 warmdev