{"action":"created","issue":{"url":"https://api.github.com/repos/bobtiki/AVScriptFormat/issues/1","repository_url":"https://api.github.com/repos/bobtiki/AVScriptFormat","labels_url":"https://api.github.com/repos/bobtiki/AVScriptFormat/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/bobtiki/AVScriptFormat/issues/1/comments","events_url":"https://api.github.com/repos/bobtiki/AVScriptFormat/issues/1/events","html_url":"https://github.com/bobtiki/AVScriptFormat/issues/1","id":155138634,"number":1,"title":"When printing, doesn't reliably break cleanly","user":{"login":"bobtiki","id":50014,"avatar_url":"https://avatars.githubusercontent.com/u/50014?v=3","gravatar_id":"","url":"https://api.github.com/users/bobtiki","html_url":"https://github.com/bobtiki","followers_url":"https://api.github.com/users/bobtiki/followers","following_url":"https://api.github.com/users/bobtiki/following{/other_user}","gists_url":"https://api.github.com/users/bobtiki/gists{/gist_id}","starred_url":"https://api.github.com/users/bobtiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobtiki/subscriptions","organizations_url":"https://api.github.com/users/bobtiki/orgs","repos_url":"https://api.github.com/users/bobtiki/repos","events_url":"https://api.github.com/users/bobtiki/events{/privacy}","received_events_url":"https://api.github.com/users/bobtiki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-16T22:40:41Z","updated_at":"2016-05-16T23:57:01Z","closed_at":null,"body":"Often the printout will split between the video and audio parts of the same graph. This seems to be a Safari and/or WebView layout bug when printing, but perhaps I can find another way around this?"},"comment":{"url":"https://api.github.com/repos/bobtiki/AVScriptFormat/issues/comments/219582896","html_url":"https://github.com/bobtiki/AVScriptFormat/issues/1#issuecomment-219582896","issue_url":"https://api.github.com/repos/bobtiki/AVScriptFormat/issues/1","id":219582896,"user":{"login":"chuckdude","id":76215,"avatar_url":"https://avatars.githubusercontent.com/u/76215?v=3","gravatar_id":"","url":"https://api.github.com/users/chuckdude","html_url":"https://github.com/chuckdude","followers_url":"https://api.github.com/users/chuckdude/followers","following_url":"https://api.github.com/users/chuckdude/following{/other_user}","gists_url":"https://api.github.com/users/chuckdude/gists{/gist_id}","starred_url":"https://api.github.com/users/chuckdude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuckdude/subscriptions","organizations_url":"https://api.github.com/users/chuckdude/orgs","repos_url":"https://api.github.com/users/chuckdude/repos","events_url":"https://api.github.com/users/chuckdude/events{/privacy}","received_events_url":"https://api.github.com/users/chuckdude/received_events","type":"User","site_admin":false},"created_at":"2016-05-16T23:57:00Z","updated_at":"2016-05-16T23:57:00Z","body":"Getting page breaks from CSS/HTML is a bit of a tricky thing, since WebKit prefers to handle page breaking based on blocks of contents (<section>s or <div>s).\r\n\r\nThe print.css that we came up with for docs relies on <section>s; for example:\r\n\r\nCSS:\r\n`\r\nsection#chapter {\r\n\tpadding: 1.5em .5em;\r\n\tmargin: 1.5em .5em;\r\n\tpage-break-before: always !important;\r\n\tbreak-before: always !important;\r\n}\r\n`\r\n\r\nHTML:\r\n`\r\n<section id=\"chapter\">\r\n<h1>Some Head</h1>\r\n<p>Some blob of text that nobody will ever read. Ever.</p>\r\n</section>\r\n`\r\n\r\nThe other thing you can do with the CSS is to use the @page media query for specifying margins, page headers and footers, and more. Let me know if you want help with that. "}}