{"action":"created","issue":{"url":"https://api.github.com/repos/angrykoala/yamp/issues/23","repository_url":"https://api.github.com/repos/angrykoala/yamp","labels_url":"https://api.github.com/repos/angrykoala/yamp/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/angrykoala/yamp/issues/23/comments","events_url":"https://api.github.com/repos/angrykoala/yamp/issues/23/events","html_url":"https://github.com/angrykoala/yamp/issues/23","id":174924203,"number":23,"title":"Code blocks truncated","user":{"login":"psicobyte","id":1206823,"avatar_url":"https://avatars.githubusercontent.com/u/1206823?v=3","gravatar_id":"","url":"https://api.github.com/users/psicobyte","html_url":"https://github.com/psicobyte","followers_url":"https://api.github.com/users/psicobyte/followers","following_url":"https://api.github.com/users/psicobyte/following{/other_user}","gists_url":"https://api.github.com/users/psicobyte/gists{/gist_id}","starred_url":"https://api.github.com/users/psicobyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psicobyte/subscriptions","organizations_url":"https://api.github.com/users/psicobyte/orgs","repos_url":"https://api.github.com/users/psicobyte/repos","events_url":"https://api.github.com/users/psicobyte/events{/privacy}","received_events_url":"https://api.github.com/users/psicobyte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angrykoala/yamp/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-04T00:17:52Z","updated_at":"2016-09-04T11:34:50Z","closed_at":null,"body":"Code blocks are formatted in HTML using the \\<pre>\\<code> ... \\</ code>\\</ pre> tags. If the block is greater than the width of the page, a horizontal scroll bar is displayed (as github pages, off course).\r\n\r\nWhen creating the PDF, this bar is displayed as a static image, it does not allow scrolling text, and the right side is hidden.\r\n\r\nThis effect is increased because the font in the PDF is too big. With the current font, the code block has a width of 61 characters, apparently.\r\n\r\nFor example, the following block:\r\n\r\n    text in a code block with many characters:\r\n    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890\r\n\r\n\r\nwill create this HTML code:\r\n\r\n    <pre><code> text in a code block with many characters:\r\n    1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890\r\n    </code></pre>\r\n\r\nto display in the PDF as follows:\r\n\r\n![captura](https://cloud.githubusercontent.com/assets/1206823/18228239/239daad6-7245-11e6-8045-e3fe7818accb.png)\r\n"},"comment":{"url":"https://api.github.com/repos/angrykoala/yamp/issues/comments/244598255","html_url":"https://github.com/angrykoala/yamp/issues/23#issuecomment-244598255","issue_url":"https://api.github.com/repos/angrykoala/yamp/issues/23","id":244598255,"user":{"login":"angrykoala","id":5960567,"avatar_url":"https://avatars.githubusercontent.com/u/5960567?v=3","gravatar_id":"","url":"https://api.github.com/users/angrykoala","html_url":"https://github.com/angrykoala","followers_url":"https://api.github.com/users/angrykoala/followers","following_url":"https://api.github.com/users/angrykoala/following{/other_user}","gists_url":"https://api.github.com/users/angrykoala/gists{/gist_id}","starred_url":"https://api.github.com/users/angrykoala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angrykoala/subscriptions","organizations_url":"https://api.github.com/users/angrykoala/orgs","repos_url":"https://api.github.com/users/angrykoala/repos","events_url":"https://api.github.com/users/angrykoala/events{/privacy}","received_events_url":"https://api.github.com/users/angrykoala/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T11:34:50Z","updated_at":"2016-09-04T11:34:50Z","body":"This css rule seems to provide the desired behavior for pdf output, there should be different stylesheets or templates for html and pdf output\r\n```css\r\npre code{\r\n  white-space: normal;\r\n  word-wrap: break-word;\r\n}\r\n```"}}
{"actor":{"display_login":"angrykoala"}}