{"action":"reopened","issue":{"url":"https://api.github.com/repos/nstanger/ouexam/issues/28","labels_url":"https://api.github.com/repos/nstanger/ouexam/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/nstanger/ouexam/issues/28/comments","events_url":"https://api.github.com/repos/nstanger/ouexam/issues/28/events","html_url":"https://github.com/nstanger/ouexam/issues/28","id":41245864,"number":28,"title":"Crash: Verbatim environments followed by blank line at end of question","user":{"login":"nstanger","id":4316101,"avatar_url":"https://avatars.githubusercontent.com/u/4316101?v=3","gravatar_id":"","url":"https://api.github.com/users/nstanger","html_url":"https://github.com/nstanger","followers_url":"https://api.github.com/users/nstanger/followers","following_url":"https://api.github.com/users/nstanger/following{/other_user}","gists_url":"https://api.github.com/users/nstanger/gists{/gist_id}","starred_url":"https://api.github.com/users/nstanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstanger/subscriptions","organizations_url":"https://api.github.com/users/nstanger/orgs","repos_url":"https://api.github.com/users/nstanger/repos","events_url":"https://api.github.com/users/nstanger/events{/privacy}","received_events_url":"https://api.github.com/users/nstanger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nstanger/ouexam/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"nstanger","id":4316101,"avatar_url":"https://avatars.githubusercontent.com/u/4316101?v=3","gravatar_id":"","url":"https://api.github.com/users/nstanger","html_url":"https://github.com/nstanger","followers_url":"https://api.github.com/users/nstanger/followers","following_url":"https://api.github.com/users/nstanger/following{/other_user}","gists_url":"https://api.github.com/users/nstanger/gists{/gist_id}","starred_url":"https://api.github.com/users/nstanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstanger/subscriptions","organizations_url":"https://api.github.com/users/nstanger/orgs","repos_url":"https://api.github.com/users/nstanger/repos","events_url":"https://api.github.com/users/nstanger/events{/privacy}","received_events_url":"https://api.github.com/users/nstanger/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2014-08-27T03:33:37Z","updated_at":"2015-08-18T01:22:01Z","closed_at":null,"body":"Discovered by Mark George. If the very last thing in a question is some sort of verbatim *environment* (`verbatim`, `lstlisting`, etc.) following by a blank line, then `ouexam` crashes when attempting to insert the number of marks:\r\n\r\n```\r\n! You can't use `\\unskip' in vertical mode.\r\n\\endquestion ...nning}{\\value {qexpected}}\\unskip \r\n                                                  \\nobreak \\hfil \\penalty 50...\r\nl.64 \\end{question}\r\n```\r\n\r\nI’m guessing the verbatim environment is putting TeX into vertical mode (they do tend to screw around with things quite a lot).\r\n\r\nThings to note:\r\n* Works fine if there’s no trailing blank line.\r\n* Verbatim *environments* only; `\\verb` is fine.\r\n\r\nMinimal (not) working example:\r\n\r\n```tex\r\n\\documentclass{ouexam}\r\n\r\n\\examyear{2014}\r\n\\department{department}\r\n\\papernumber{paper}\r\n\\papertitle{title}\r\n\r\n\r\n\\begin{document}\r\n\\begin{question}{100}\r\n    bla bla\r\n\r\n    \\begin{verbatim}\r\n        bla bla bla\r\n    \\end{verbatim}\r\n\r\n\\end{question}\r\n\\end{document}\r\n```\r\n\r\nRemove the blank line after `\\end{verbatim}` and it’s fine."}}