{"action":"created","issue":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/173","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/173/labels{/name}","comments_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/173/comments","events_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/173/events","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/173","id":83595829,"number":173,"title":"converter.rb:537:in `convert_colist': undefined method `-' for nil:NilClass (NoMethodError)","user":{"login":"DavidGamba","id":1115287,"avatar_url":"https://avatars.githubusercontent.com/u/1115287?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidGamba","html_url":"https://github.com/DavidGamba","followers_url":"https://api.github.com/users/DavidGamba/followers","following_url":"https://api.github.com/users/DavidGamba/following{/other_user}","gists_url":"https://api.github.com/users/DavidGamba/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidGamba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidGamba/subscriptions","organizations_url":"https://api.github.com/users/DavidGamba/orgs","repos_url":"https://api.github.com/users/DavidGamba/repos","events_url":"https://api.github.com/users/DavidGamba/events{/privacy}","received_events_url":"https://api.github.com/users/DavidGamba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/milestones/2","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/milestones/v1.5.0","labels_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/milestones/2/labels","id":756849,"number":2,"title":"v1.5.0","description":"The first stable release of the converter, aligns with Asciidoctor 1.5.0. ","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":24,"closed_issues":59,"state":"open","created_at":"2014-08-18T05:02:11Z","updated_at":"2015-06-01T19:18:50Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-06-01T16:41:19Z","updated_at":"2015-06-01T19:44:34Z","closed_at":"2015-06-01T19:18:50Z","body":"Trying to build asciidoctor-pdf from the tagged version Release 1.5.0.alpha.7 fails with:\r\n\r\n````\r\n/home/david/code/personal/git/asciidoctor-pdf/lib/asciidoctor-pdf/converter.rb:537:in `convert_colist': undefined method `-' for nil:NilClass (NoMethodError)\r\n        from /home/david/code/personal/git/asciidoctor-pdf/lib/asciidoctor-pdf/converter.rb:76:in `convert'\r\n        from /home/david/.rvm/gems/ruby-2.2.0/gems/asciidoctor-1.5.2/lib/asciidoctor/abstract_block.rb:71:in `convert'\r\n````\r\n\r\nUsing this diff clears the error, but I am just skipping whatever the code is doing:\r\n\r\n````diff\r\ndiff --git lib/asciidoctor-pdf/converter.rb lib/asciidoctor-pdf/converter.rb\r\nindex 920992e..7a8403d 100644\r\n--- lib/asciidoctor-pdf/converter.rb\r\n+++ lib/asciidoctor-pdf/converter.rb\r\n@@ -533,7 +533,7 @@ class Converter < ::Prawn::Document\r\n   def convert_colist node\r\n     # HACK undo the margin below previous listing or literal block\r\n     # TODO allow this to be set using colist_margin_top\r\n-    unless at_page_top? || (self_idx = node.parent.blocks.index node) == 0 ||\r\n+    unless at_page_top? || (self_idx = node.parent.blocks.index node) == 0 || self_idx.nil? ||\r\n         ![:listing, :literal].include?(node.parent.blocks[self_idx - 1].context)\r\n       move_up ((@theme.block_margin_bottom || @theme.vertical_rhythm) / 2.0)\r\n       # or we could do...\r\n````\r\n\r\nI don't know what it means for `self_idx` to be `nil`."},"comment":{"url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/comments/107682128","html_url":"https://github.com/asciidoctor/asciidoctor-pdf/issues/173#issuecomment-107682128","issue_url":"https://api.github.com/repos/asciidoctor/asciidoctor-pdf/issues/173","id":107682128,"user":{"login":"DavidGamba","id":1115287,"avatar_url":"https://avatars.githubusercontent.com/u/1115287?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidGamba","html_url":"https://github.com/DavidGamba","followers_url":"https://api.github.com/users/DavidGamba/followers","following_url":"https://api.github.com/users/DavidGamba/following{/other_user}","gists_url":"https://api.github.com/users/DavidGamba/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidGamba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidGamba/subscriptions","organizations_url":"https://api.github.com/users/DavidGamba/orgs","repos_url":"https://api.github.com/users/DavidGamba/repos","events_url":"https://api.github.com/users/DavidGamba/events{/privacy}","received_events_url":"https://api.github.com/users/DavidGamba/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T19:44:34Z","updated_at":"2015-06-01T19:44:34Z","body":"Thanks for the quick fix. I'll hopefully have a chance to test your latest changes in the next couple of days."}}