{"action":"closed","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1917","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1917/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1917/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1917/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/1917","id":84635515,"number":1917,"title":":caption: flag in graphviz directives causes the HTML writer to crash","user":{"login":"pchampin","id":304612,"avatar_url":"https://avatars.githubusercontent.com/u/304612?v=3","gravatar_id":"","url":"https://api.github.com/users/pchampin","html_url":"https://github.com/pchampin","followers_url":"https://api.github.com/users/pchampin/followers","following_url":"https://api.github.com/users/pchampin/following{/other_user}","gists_url":"https://api.github.com/users/pchampin/gists{/gist_id}","starred_url":"https://api.github.com/users/pchampin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchampin/subscriptions","organizations_url":"https://api.github.com/users/pchampin/orgs","repos_url":"https://api.github.com/users/pchampin/repos","events_url":"https://api.github.com/users/pchampin/events{/privacy}","received_events_url":"https://api.github.com/users/pchampin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/bug","name":"bug","color":"a11d21"},{"url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/environment","name":"environment","color":"FFFFFF"},{"url":"https://api.github.com/repos/sphinx-doc/sphinx/labels/html","name":"html","color":"FFFFFF"}],"state":"closed","locked":false,"assignee":{"login":"tk0miya","id":748828,"avatar_url":"https://avatars.githubusercontent.com/u/748828?v=3","gravatar_id":"","url":"https://api.github.com/users/tk0miya","html_url":"https://github.com/tk0miya","followers_url":"https://api.github.com/users/tk0miya/followers","following_url":"https://api.github.com/users/tk0miya/following{/other_user}","gists_url":"https://api.github.com/users/tk0miya/gists{/gist_id}","starred_url":"https://api.github.com/users/tk0miya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tk0miya/subscriptions","organizations_url":"https://api.github.com/users/tk0miya/orgs","repos_url":"https://api.github.com/users/tk0miya/repos","events_url":"https://api.github.com/users/tk0miya/events{/privacy}","received_events_url":"https://api.github.com/users/tk0miya/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones/11","html_url":"https://github.com/sphinx-doc/sphinx/milestones/1.3.2","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones/11/labels","id":1024840,"number":11,"title":"1.3.2","description":"","creator":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":10,"state":"open","created_at":"2015-03-17T05:39:17Z","updated_at":"2015-06-26T12:50:09Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-03T15:55:40Z","updated_at":"2015-06-26T12:50:09Z","closed_at":"2015-06-26T12:50:09Z","body":"Steps to reproduce the bug:\r\n\r\n1. create a fresh Sphinx project\r\n2. include sphinx.ext.graphviz in the extensions\r\n3. add the text below in `index.rst`:\r\n\r\n        .. digraph:: foo\r\n            :caption: the caption of my graph\r\n\r\n            a -> b\r\n\r\n4. run `make html`\r\n\r\nWith Sphinx 1.3.1, I get the following exception:\r\n\r\n    Exception occurred:\r\n      File \"/home/pa/.local/lib/python2.7/site-packages/sphinx/writers/html.py\", line 353, in depart_caption\r\n          node.parent.traverse(nodes.image)[0], _('Permalink to this image'))\r\n    IndexError: list index out of range\r\n\r\n\r\n\r\n\r\n"}}