{"action":"created","issue":{"url":"https://api.github.com/repos/wf49670/ppgen/issues/84","labels_url":"https://api.github.com/repos/wf49670/ppgen/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/wf49670/ppgen/issues/84/comments","events_url":"https://api.github.com/repos/wf49670/ppgen/issues/84/events","html_url":"https://github.com/wf49670/ppgen/issues/84","id":59420296,"number":84,"title":"If .de statement is the last line of a source file ppgen crashes","user":{"login":"davem2","id":823307,"avatar_url":"https://avatars.githubusercontent.com/u/823307?v=3","gravatar_id":"","url":"https://api.github.com/users/davem2","html_url":"https://github.com/davem2","followers_url":"https://api.github.com/users/davem2/followers","following_url":"https://api.github.com/users/davem2/following{/other_user}","gists_url":"https://api.github.com/users/davem2/gists{/gist_id}","starred_url":"https://api.github.com/users/davem2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davem2/subscriptions","organizations_url":"https://api.github.com/users/davem2/orgs","repos_url":"https://api.github.com/users/davem2/repos","events_url":"https://api.github.com/users/davem2/events{/privacy}","received_events_url":"https://api.github.com/users/davem2/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-01T22:11:21Z","updated_at":"2015-03-02T00:33:06Z","closed_at":null,"body":"I noticed this minor issue where it appears that if a .de statement is the final line of a source file a list index out of range exception occurs. The example below causes ppgen to crash:\r\n\r\n```\r\n// Ancient chinese glyphs\r\n.de .glyph { display: inline-block; height: 100%; vertical-align: middle; }\r\n.sr h ~<il (.+?)>~<img class='glyph' src='images/\\1' />~\r\n.sr t ~<il (.+?)>~[Chinese: **]~\r\n```\r\n\r\nIf a space if added after the .de statement, or some statements that are not stripped prior to .de processing are added to the bottom then the file builds ok."},"comment":{"url":"https://api.github.com/repos/wf49670/ppgen/issues/comments/76641241","html_url":"https://github.com/wf49670/ppgen/issues/84#issuecomment-76641241","issue_url":"https://api.github.com/repos/wf49670/ppgen/issues/84","id":76641241,"user":{"login":"wf49670","id":8764025,"avatar_url":"https://avatars.githubusercontent.com/u/8764025?v=3","gravatar_id":"","url":"https://api.github.com/users/wf49670","html_url":"https://github.com/wf49670","followers_url":"https://api.github.com/users/wf49670/followers","following_url":"https://api.github.com/users/wf49670/following{/other_user}","gists_url":"https://api.github.com/users/wf49670/gists{/gist_id}","starred_url":"https://api.github.com/users/wf49670/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wf49670/subscriptions","organizations_url":"https://api.github.com/users/wf49670/orgs","repos_url":"https://api.github.com/users/wf49670/repos","events_url":"https://api.github.com/users/wf49670/events{/privacy}","received_events_url":"https://api.github.com/users/wf49670/received_events","type":"User","site_admin":false},"created_at":"2015-03-02T00:33:06Z","updated_at":"2015-03-02T00:33:06Z","body":"On 3/1/2015 5:11 PM, davem2 wrote:\n>\n> I noticed this minor issue where it appears that if a .de statement is \n> the final line of a source file a list index out of range exception \n> occurs. The example below causes ppgen to crash:\n>\n> |// Ancient chinese glyphs\n> .de .glyph { display: inline-block; height: 100%; vertical-align: middle; }\n> .sr h ~<il (.+?)>~<img class='glyph' src='images/\\1' />~\n> .sr t ~<il (.+?)>~[Chinese: **]~\n> |\n>\n> If a space if added after the .de statement, or some statements that \n> are not stripped prior to .de processing are added to the bottom then \n> the file builds ok.\n>\n\nFixed in development 3.47j\n"}}