{"action":"created","issue":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3292","repository_url":"https://api.github.com/repos/sphinx-doc/sphinx","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3292/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3292/comments","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3292/events","html_url":"https://github.com/sphinx-doc/sphinx/pull/3292","id":198181777,"number":3292,"title":"Allow override docwriter for LaTeXBuilder.","user":{"login":"chenshuo","id":231074,"avatar_url":"https://avatars.githubusercontent.com/u/231074?v=3","gravatar_id":"","url":"https://api.github.com/users/chenshuo","html_url":"https://github.com/chenshuo","followers_url":"https://api.github.com/users/chenshuo/followers","following_url":"https://api.github.com/users/chenshuo/following{/other_user}","gists_url":"https://api.github.com/users/chenshuo/gists{/gist_id}","starred_url":"https://api.github.com/users/chenshuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenshuo/subscriptions","organizations_url":"https://api.github.com/users/chenshuo/orgs","repos_url":"https://api.github.com/users/chenshuo/repos","events_url":"https://api.github.com/users/chenshuo/events{/privacy}","received_events_url":"https://api.github.com/users/chenshuo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-30T18:49:32Z","updated_at":"2016-12-30T19:14:12Z","closed_at":"2016-12-30T19:11:00Z","pull_request":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/3292","html_url":"https://github.com/sphinx-doc/sphinx/pull/3292","diff_url":"https://github.com/sphinx-doc/sphinx/pull/3292.diff","patch_url":"https://github.com/sphinx-doc/sphinx/pull/3292.patch"},"body":"Subject: Allow overriding docwriter in LaTeXBuilder\r\n\r\n### Feature or Bugfix\r\n- Feature (trivial)\r\n\r\n### Purpose\r\n- I am customizing LaTeXWriter for better Chinese support by subclassing it.  I'd like to use my own writer in LaTeXBuilder, the simplest way is subclassing LaTeXBuilder and only change the writer it uses. So I added a one-line method for setting docwriter in subclass.\r\n\r\n### Detail\r\n- Add a get_docwriter() method in LaTeXBuilder, and let write() call it to get a docwriter, the default implementation of get_docwriter() returns a LaTeXWriter.\r\n\r\n### Relates\r\n- none\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments/269810552","html_url":"https://github.com/sphinx-doc/sphinx/pull/3292#issuecomment-269810552","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/3292","id":269810552,"user":{"login":"chenshuo","id":231074,"avatar_url":"https://avatars.githubusercontent.com/u/231074?v=3","gravatar_id":"","url":"https://api.github.com/users/chenshuo","html_url":"https://github.com/chenshuo","followers_url":"https://api.github.com/users/chenshuo/followers","following_url":"https://api.github.com/users/chenshuo/following{/other_user}","gists_url":"https://api.github.com/users/chenshuo/gists{/gist_id}","starred_url":"https://api.github.com/users/chenshuo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenshuo/subscriptions","organizations_url":"https://api.github.com/users/chenshuo/orgs","repos_url":"https://api.github.com/users/chenshuo/repos","events_url":"https://api.github.com/users/chenshuo/events{/privacy}","received_events_url":"https://api.github.com/users/chenshuo/received_events","type":"User","site_admin":false},"created_at":"2016-12-30T19:14:12Z","updated_at":"2016-12-30T19:14:12Z","body":"Seems I can call app.set_translator() instead."}}
{"actor":{"display_login":"chenshuo"}}