{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/372","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/372/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/372/events","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/372","id":122239285,"number":372,"title":"Table with percentages not rendered correctly","user":{"login":"filiphr","id":6012094,"avatar_url":"https://avatars.githubusercontent.com/u/6012094?v=3","gravatar_id":"","url":"https://api.github.com/users/filiphr","html_url":"https://github.com/filiphr","followers_url":"https://api.github.com/users/filiphr/followers","following_url":"https://api.github.com/users/filiphr/following{/other_user}","gists_url":"https://api.github.com/users/filiphr/gists{/gist_id}","starred_url":"https://api.github.com/users/filiphr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiphr/subscriptions","organizations_url":"https://api.github.com/users/filiphr/orgs","repos_url":"https://api.github.com/users/filiphr/repos","events_url":"https://api.github.com/users/filiphr/events{/privacy}","received_events_url":"https://api.github.com/users/filiphr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/milestones/1","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/milestones/support","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/milestones/1/labels","id":707354,"number":1,"title":"support","description":"Issues that are handled and resolved as support cases.","creator":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":21,"state":"open","created_at":"2014-07-01T21:44:56Z","updated_at":"2015-12-16T07:40:08Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-12-15T10:23:17Z","updated_at":"2015-12-16T20:35:25Z","closed_at":null,"body":"I have been trying to create some tables with percentages for the cols and I am getting a ```CannotFit``` from Prawn. I am not sure if this is a Prawn problem or something from the pdf generator.\r\n\r\nAn example table is the following;\r\n```ASCIIDOC\r\n.Table title\r\n[cols=\"e,e,40%\"]\r\n|===\r\n|Header 1 |Header 2 |Header 3\r\n\r\n|Column 1, row 1\r\n|Column 2, row 1\r\n|Column 3, row 1\r\n\r\n|Column 1, row 2\r\n|Column 2, row 2\r\n|Column 3, row 2\r\n\r\n|Column 1, row 3\r\n|Column 2, row 3\r\n|Column 3, row 3\r\n|===\r\n```\r\n\r\nIs there some way to create a table with percentages for the columns and create pdf from it?"},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/comments/165236998","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/372#issuecomment-165236998","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/372","id":165236998,"user":{"login":"mojavelinux","id":79351,"avatar_url":"https://avatars.githubusercontent.com/u/79351?v=3","gravatar_id":"","url":"https://api.github.com/users/mojavelinux","html_url":"https://github.com/mojavelinux","followers_url":"https://api.github.com/users/mojavelinux/followers","following_url":"https://api.github.com/users/mojavelinux/following{/other_user}","gists_url":"https://api.github.com/users/mojavelinux/gists{/gist_id}","starred_url":"https://api.github.com/users/mojavelinux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mojavelinux/subscriptions","organizations_url":"https://api.github.com/users/mojavelinux/orgs","repos_url":"https://api.github.com/users/mojavelinux/repos","events_url":"https://api.github.com/users/mojavelinux/events{/privacy}","received_events_url":"https://api.github.com/users/mojavelinux/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T20:35:25Z","updated_at":"2015-12-16T20:35:25Z","body":"> SEVERE: (CannotFit) Table's width was set larger than its contents' maximum width (max width 494.8991999999999, requested 515.52).\r\n\r\nThere's a fix for this in master, not the released version.\r\n\r\nI don't understand what your table is supposed to look like, but what I'm seeing in the HTML output seems incorrect.\r\n\r\n> If the second columns are 47 instead of 30 it works.\r\n\r\nThere is a bug in core that causes the columns to not add up to 100% when the values aren't based on 100. Therefore, you should ensure that your numbers add up to 100 and you'll work around this issue.\r\n\r\n> If I use the asciidoctor-pdf generator then the table is spread over 2 pages, I want it to be on one page, not 2 pages. I am using the doctype article when doing the conversion. Am I doing something wrong?\r\n\r\nNo, this is not yet supported. See #331.\r\n\r\n> When I create a pdf with the docbkx maven plugin the table is properly done.\r\n\r\nThese are orthogonal things. That's a different tool and thus has different behavior."}}