{"action":"created","issue":{"url":"https://api.github.com/repos/fnando/kitabu/issues/48","repository_url":"https://api.github.com/repos/fnando/kitabu","labels_url":"https://api.github.com/repos/fnando/kitabu/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/fnando/kitabu/issues/48/comments","events_url":"https://api.github.com/repos/fnando/kitabu/issues/48/events","html_url":"https://github.com/fnando/kitabu/issues/48","id":98924668,"number":48,"title":"Weird TOC on Epub and Mobi","user":{"login":"simpsonjulian","id":35637,"avatar_url":"https://avatars0.githubusercontent.com/u/35637?v=3","gravatar_id":"","url":"https://api.github.com/users/simpsonjulian","html_url":"https://github.com/simpsonjulian","followers_url":"https://api.github.com/users/simpsonjulian/followers","following_url":"https://api.github.com/users/simpsonjulian/following{/other_user}","gists_url":"https://api.github.com/users/simpsonjulian/gists{/gist_id}","starred_url":"https://api.github.com/users/simpsonjulian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpsonjulian/subscriptions","organizations_url":"https://api.github.com/users/simpsonjulian/orgs","repos_url":"https://api.github.com/users/simpsonjulian/repos","events_url":"https://api.github.com/users/simpsonjulian/events{/privacy}","received_events_url":"https://api.github.com/users/simpsonjulian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-08-04T09:12:04Z","updated_at":"2017-05-02T08:10:13Z","closed_at":null,"body":"My interest is in making a book in Mobi format.  The sample book renders to HTML, Epub and Mobi, but the TOC in the latter two contains lots of text from each page.  , which\n\nI tracked it down to 390eed1b55a33fe9a06a0703cd9c3ca9775ff17b - `lib/kitabu/exporter/epub.rb` - the selector on line 132 seems to match too many elements on the page.  I edited the gem and changed that selector back to the previous one, and it generates a minimal but improved TOC, which looks much better in the Kindle app.\n"},"comment":{"url":"https://api.github.com/repos/fnando/kitabu/issues/comments/298544971","html_url":"https://github.com/fnando/kitabu/issues/48#issuecomment-298544971","issue_url":"https://api.github.com/repos/fnando/kitabu/issues/48","id":298544971,"user":{"login":"simpsonjulian","id":35637,"avatar_url":"https://avatars0.githubusercontent.com/u/35637?v=3","gravatar_id":"","url":"https://api.github.com/users/simpsonjulian","html_url":"https://github.com/simpsonjulian","followers_url":"https://api.github.com/users/simpsonjulian/followers","following_url":"https://api.github.com/users/simpsonjulian/following{/other_user}","gists_url":"https://api.github.com/users/simpsonjulian/gists{/gist_id}","starred_url":"https://api.github.com/users/simpsonjulian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simpsonjulian/subscriptions","organizations_url":"https://api.github.com/users/simpsonjulian/orgs","repos_url":"https://api.github.com/users/simpsonjulian/repos","events_url":"https://api.github.com/users/simpsonjulian/events{/privacy}","received_events_url":"https://api.github.com/users/simpsonjulian/received_events","type":"User","site_admin":false},"created_at":"2017-05-02T08:10:13Z","updated_at":"2017-05-02T08:10:13Z","body":"Hi @fny, I found this diff:\r\n\r\n```diff --git a/templates/html/layout.erb b/templates/html/layout.erb\r\nindex 84c91c1..0447b22 100644\r\n--- a/templates/html/layout.erb\r\n+++ b/templates/html/layout.erb\r\n@@ -24,9 +24,6 @@\r\n\r\n     <div class=\"table-of-contents\">\r\n       <h2 class=\"no-toc\">Contents</h2>\r\n-      <div id=\"toc\">\r\n-        <%= toc %>\r\n-      </div>\r\n     </div>```\r\n\r\n     <div id=\"chapters\">"}}
{"actor":{"display_login":"simpsonjulian"}}