{"action":"opened","issue":{"url":"https://api.github.com/repos/tmhedberg/SimpylFold/issues/40","labels_url":"https://api.github.com/repos/tmhedberg/SimpylFold/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/tmhedberg/SimpylFold/issues/40/comments","events_url":"https://api.github.com/repos/tmhedberg/SimpylFold/issues/40/events","html_url":"https://github.com/tmhedberg/SimpylFold/issues/40","id":94672665,"number":40,"title":"Misfold on function definitons with multi-line arguments","user":{"login":"nnathan","id":319907,"avatar_url":"https://avatars.githubusercontent.com/u/319907?v=3","gravatar_id":"","url":"https://api.github.com/users/nnathan","html_url":"https://github.com/nnathan","followers_url":"https://api.github.com/users/nnathan/followers","following_url":"https://api.github.com/users/nnathan/following{/other_user}","gists_url":"https://api.github.com/users/nnathan/gists{/gist_id}","starred_url":"https://api.github.com/users/nnathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnathan/subscriptions","organizations_url":"https://api.github.com/users/nnathan/orgs","repos_url":"https://api.github.com/users/nnathan/repos","events_url":"https://api.github.com/users/nnathan/events{/privacy}","received_events_url":"https://api.github.com/users/nnathan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-13T09:01:02Z","updated_at":"2015-07-13T09:01:02Z","closed_at":null,"body":"Just want to report a case where folding seems to fail. \r\n\r\nTest case:\r\n\r\n```python\r\ndef bad_fold(\r\n    foo,\r\n    bar\r\n):  \r\n    pass\r\n    pass\r\n    pass\r\n    pass\r\n\r\n\r\ndef foo():\r\n    pass\r\n    pass\r\n    pass\r\n    pass\r\n```\r\n\r\nResults after fold:\r\n```\r\n+--  3 lines: def bad_fold(--------------------------------------------------------------------------------------------------------------------------------------------\r\n):  \r\n    pass\r\n    pass\r\n    pass\r\n    pass\r\n    \r\n    \r\n+--  5 lines: def foo():-----------------------------------------------------------------------------------------------------------------------------------------------\r\n```"}}