{"action":"opened","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1842","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1842/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1842/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/1842/events","html_url":"https://github.com/sphinx-doc/sphinx/issues/1842","id":67321295,"number":1842,"title":"wrong section numbering using toctree and ifconfig","user":{"login":"andreacassioli","id":6704112,"avatar_url":"https://avatars.githubusercontent.com/u/6704112?v=3","gravatar_id":"","url":"https://api.github.com/users/andreacassioli","html_url":"https://github.com/andreacassioli","followers_url":"https://api.github.com/users/andreacassioli/followers","following_url":"https://api.github.com/users/andreacassioli/following{/other_user}","gists_url":"https://api.github.com/users/andreacassioli/gists{/gist_id}","starred_url":"https://api.github.com/users/andreacassioli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreacassioli/subscriptions","organizations_url":"https://api.github.com/users/andreacassioli/orgs","repos_url":"https://api.github.com/users/andreacassioli/repos","events_url":"https://api.github.com/users/andreacassioli/events{/privacy}","received_events_url":"https://api.github.com/users/andreacassioli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-09T09:33:15Z","updated_at":"2015-04-09T09:33:15Z","closed_at":null,"body":"I would like to include some section conditionally. I did as follow\r\n\r\n```\r\ntest\r\n========\r\n\r\n.. ifconfig:: True\r\n\r\n   section 1\r\n   -------------\r\n\r\n   ssection 2\r\n   ^^^^^^^^^^^^^^^\r\n```\r\n\r\n\r\nBut the output is \r\n\r\n1. test\r\n\r\n1. section 1\r\n\r\n1. ssection 2\r\n\r\nwith the right layout but not the right numbering."}}