{"action":"closed","issue":{"url":"https://api.github.com/repos/swcarpentry/workshop-template/issues/128","labels_url":"https://api.github.com/repos/swcarpentry/workshop-template/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/swcarpentry/workshop-template/issues/128/comments","events_url":"https://api.github.com/repos/swcarpentry/workshop-template/issues/128/events","html_url":"https://github.com/swcarpentry/workshop-template/issues/128","id":53761201,"number":128,"title":"tests for check.py do not correctly spot blank lines as a problem","user":{"login":"gvwilson","id":911566,"avatar_url":"https://avatars.githubusercontent.com/u/911566?v=3","gravatar_id":"","url":"https://api.github.com/users/gvwilson","html_url":"https://github.com/gvwilson","followers_url":"https://api.github.com/users/gvwilson/followers","following_url":"https://api.github.com/users/gvwilson/following{/other_user}","gists_url":"https://api.github.com/users/gvwilson/gists{/gist_id}","starred_url":"https://api.github.com/users/gvwilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gvwilson/subscriptions","organizations_url":"https://api.github.com/users/gvwilson/orgs","repos_url":"https://api.github.com/users/gvwilson/repos","events_url":"https://api.github.com/users/gvwilson/events{/privacy}","received_events_url":"https://api.github.com/users/gvwilson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/swcarpentry/workshop-template/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-08T15:17:54Z","updated_at":"2015-01-10T00:50:28Z","closed_at":"2015-01-10T00:50:28Z","body":"`test_check_with_blank_lines` in `tools/test_check.py` should fail, but doesn't (blank lines should be reported as a problem in the YAML header).\r\n\r\nAs part of fixing this, we should get rid of `get_header` (which is manually parsing YAML) and use the same trick used in the main website:\r\n\r\n    pieces = text.split('---')\r\n    if len(pieces) < 2:\r\n\tfail('Malformed YAML header in {0}', url)\r\n    info = yaml.load(pieces[1])\r\n\r\nThis will require refactoring elsewhere."}}