{"action":"opened","issue":{"url":"https://api.github.com/repos/marianoguerra/rst2html5/issues/86","repository_url":"https://api.github.com/repos/marianoguerra/rst2html5","labels_url":"https://api.github.com/repos/marianoguerra/rst2html5/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/marianoguerra/rst2html5/issues/86/comments","events_url":"https://api.github.com/repos/marianoguerra/rst2html5/issues/86/events","html_url":"https://github.com/marianoguerra/rst2html5/issues/86","id":161896057,"number":86,"title":"Issues with custom code blocks","user":{"login":"Kwpolska","id":327323,"avatar_url":"https://avatars.githubusercontent.com/u/327323?v=3","gravatar_id":"","url":"https://api.github.com/users/Kwpolska","html_url":"https://github.com/Kwpolska","followers_url":"https://api.github.com/users/Kwpolska/followers","following_url":"https://api.github.com/users/Kwpolska/following{/other_user}","gists_url":"https://api.github.com/users/Kwpolska/gists{/gist_id}","starred_url":"https://api.github.com/users/Kwpolska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kwpolska/subscriptions","organizations_url":"https://api.github.com/users/Kwpolska/orgs","repos_url":"https://api.github.com/users/Kwpolska/repos","events_url":"https://api.github.com/users/Kwpolska/events{/privacy}","received_events_url":"https://api.github.com/users/Kwpolska/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-23T11:03:38Z","updated_at":"2016-06-23T11:03:38Z","closed_at":null,"body":"[Nikola](https://getnikola.com/) is a static site generator. We’re using [a custom code block](https://github.com/getnikola/nikola/blob/master/nikola/plugins/compile/rest/listing.py) — it works fine with docutils, but with rst2html5 [(plugin)](, there are indentation issues: getnikola/plugins#152\r\n\r\nUnfortunately my patch does not cut it, because that breaks tabs (U+0009).\r\n\r\nHere’s a gist with a sample post and differences: https://gist.github.com/Kwpolska/a2d4268a08b60df895180f5aa6fd5513\r\n\r\nI have tracked the issue down to a difference in `self.content` for our CodeBlock directive:\r\n\r\n.  render_posts:cache/posts/index4.html\r\nN. ['sudo vim /etc/lightdm/lightdm-gtk-greeter.conf']\r\nN. ['[base]', 'session=/usr/bin/startlxde', '...', '[userlist]', 'disable=1']\r\nN. ['foo', 'bar', '             baz (this indented with 3 spaces and 2 tabs)', 'foobar', '    foobaz']\r\n.  render_posts:cache/posts/index.html\r\nN. ['sudo vim /etc/lightdm/lightdm-gtk-greeter.conf']\r\nN. ['[base]', 'session=/usr/bin/startlxde', '...', '[userlist]', 'disable=1']\r\nN. ['foo', 'bar', 'baz (this indented with 3 spaces and 2 tabs)', 'foobar', '    foobaz']\r\n\r\nAs you can see, we’re missing the indentation of `baz`. Is this a bug on our side or is this an issue with how rst2html5 parses things?\r\n\r\ncc @Netspider, @ralsina"}}
{"actor":{"display_login":"Kwpolska"}}