{"action":"created","comment":{"url":"https://api.github.com/repos/jgm/pandoc/pulls/comments/46756625","id":46756625,"diff_hunk":"@@ -10,7 +10,7 @@ import Text.Parsec.String\n ruleParser :: Parser (String, String)\n ruleParser = do\n     p <- many1 (noneOf \":\")  <* char ':'\n-    v <- many1 (noneOf \":;\") <* char ';' <* spaces\n+    v <- many1 (noneOf \":;\") <* (optional $ char ';') <* spaces","path":"src/Text/Pandoc/CSS.hs","position":5,"original_position":5,"commit_id":"d901a3da03ee1cfef09ea3001a2917ce6e2896a2","original_commit_id":"d901a3da03ee1cfef09ea3001a2917ce6e2896a2","user":{"login":"mb21","id":157497,"avatar_url":"https://avatars.githubusercontent.com/u/157497?v=3","gravatar_id":"","url":"https://api.github.com/users/mb21","html_url":"https://github.com/mb21","followers_url":"https://api.github.com/users/mb21/followers","following_url":"https://api.github.com/users/mb21/following{/other_user}","gists_url":"https://api.github.com/users/mb21/gists{/gist_id}","starred_url":"https://api.github.com/users/mb21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb21/subscriptions","organizations_url":"https://api.github.com/users/mb21/orgs","repos_url":"https://api.github.com/users/mb21/repos","events_url":"https://api.github.com/users/mb21/events{/privacy}","received_events_url":"https://api.github.com/users/mb21/received_events","type":"User","site_admin":false},"body":"Right... so it should be:\r\n\r\n    ruleParser :: Parser (String, String)\r\n    ruleParser = do\r\n        p <- many1 (noneOf \":\")  <* char ':'\r\n        v <- many1 (noneOf \":;\") <* spaces\r\n        return (trim p, trim v)\r\n\r\n    styleAttrParser :: Parser [(String, String)]\r\n    styleAttrParser = liftM2 (:)\r\n      (ruleParser <* char ';' <* spaces) $ many\r\n      $ ruleParser <* (optional $ char ';') <* spaces\r\n\r\nOr is there a nicer way to write that?","created_at":"2015-12-05T09:55:33Z","updated_at":"2015-12-05T09:55:33Z","html_url":"https://github.com/jgm/pandoc/pull/2568#discussion_r46756625","pull_request_url":"https://api.github.com/repos/jgm/pandoc/pulls/2568","_links":{"self":{"href":"https://api.github.com/repos/jgm/pandoc/pulls/comments/46756625"},"html":{"href":"https://github.com/jgm/pandoc/pull/2568#discussion_r46756625"},"pull_request":{"href":"https://api.github.com/repos/jgm/pandoc/pulls/2568"}}},"pull_request":{"url":"https://api.github.com/repos/jgm/pandoc/pulls/2568","id":52468474,"html_url":"https://github.com/jgm/pandoc/pull/2568","diff_url":"https://github.com/jgm/pandoc/pull/2568.diff","patch_url":"https://github.com/jgm/pandoc/pull/2568.patch","issue_url":"https://api.github.com/repos/jgm/pandoc/issues/2568","number":2568,"state":"closed","locked":false,"title":"Textile Reader: image attributes","user":{"login":"mb21","id":157497,"avatar_url":"https://avatars.githubusercontent.com/u/157497?v=3","gravatar_id":"","url":"https://api.github.com/users/mb21","html_url":"https://github.com/mb21","followers_url":"https://api.github.com/users/mb21/followers","following_url":"https://api.github.com/users/mb21/following{/other_user}","gists_url":"https://api.github.com/users/mb21/gists{/gist_id}","starred_url":"https://api.github.com/users/mb21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb21/subscriptions","organizations_url":"https://api.github.com/users/mb21/orgs","repos_url":"https://api.github.com/users/mb21/repos","events_url":"https://api.github.com/users/mb21/events{/privacy}","received_events_url":"https://api.github.com/users/mb21/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-02T23:07:57Z","updated_at":"2015-12-05T09:55:33Z","closed_at":"2015-12-03T02:18:30Z","merged_at":"2015-12-03T02:18:30Z","merge_commit_sha":"9e99e3002115effd784c70a9589db48abfaba739","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jgm/pandoc/pulls/2568/commits","review_comments_url":"https://api.github.com/repos/jgm/pandoc/pulls/2568/comments","review_comment_url":"https://api.github.com/repos/jgm/pandoc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jgm/pandoc/issues/2568/comments","statuses_url":"https://api.github.com/repos/jgm/pandoc/statuses/d901a3da03ee1cfef09ea3001a2917ce6e2896a2","head":{"label":"mb21:readers-images","ref":"readers-images","sha":"d901a3da03ee1cfef09ea3001a2917ce6e2896a2","user":{"login":"mb21","id":157497,"avatar_url":"https://avatars.githubusercontent.com/u/157497?v=3","gravatar_id":"","url":"https://api.github.com/users/mb21","html_url":"https://github.com/mb21","followers_url":"https://api.github.com/users/mb21/followers","following_url":"https://api.github.com/users/mb21/following{/other_user}","gists_url":"https://api.github.com/users/mb21/gists{/gist_id}","starred_url":"https://api.github.com/users/mb21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb21/subscriptions","organizations_url":"https://api.github.com/users/mb21/orgs","repos_url":"https://api.github.com/users/mb21/repos","events_url":"https://api.github.com/users/mb21/events{/privacy}","received_events_url":"https://api.github.com/users/mb21/received_events","type":"User","site_admin":false},"repo":{"id":4065072,"name":"pandoc","full_name":"mb21/pandoc","owner":{"login":"mb21","id":157497,"avatar_url":"https://avatars.githubusercontent.com/u/157497?v=3","gravatar_id":"","url":"https://api.github.com/users/mb21","html_url":"https://github.com/mb21","followers_url":"https://api.github.com/users/mb21/followers","following_url":"https://api.github.com/users/mb21/following{/other_user}","gists_url":"https://api.github.com/users/mb21/gists{/gist_id}","starred_url":"https://api.github.com/users/mb21/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mb21/subscriptions","organizations_url":"https://api.github.com/users/mb21/orgs","repos_url":"https://api.github.com/users/mb21/repos","events_url":"https://api.github.com/users/mb21/events{/privacy}","received_events_url":"https://api.github.com/users/mb21/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mb21/pandoc","description":"Universal markup converter","fork":true,"url":"https://api.github.com/repos/mb21/pandoc","forks_url":"https://api.github.com/repos/mb21/pandoc/forks","keys_url":"https://api.github.com/repos/mb21/pandoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mb21/pandoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mb21/pandoc/teams","hooks_url":"https://api.github.com/repos/mb21/pandoc/hooks","issue_events_url":"https://api.github.com/repos/mb21/pandoc/issues/events{/number}","events_url":"https://api.github.com/repos/mb21/pandoc/events","assignees_url":"https://api.github.com/repos/mb21/pandoc/assignees{/user}","branches_url":"https://api.github.com/repos/mb21/pandoc/branches{/branch}","tags_url":"https://api.github.com/repos/mb21/pandoc/tags","blobs_url":"https://api.github.com/repos/mb21/pandoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mb21/pandoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mb21/pandoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/mb21/pandoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mb21/pandoc/statuses/{sha}","languages_url":"https://api.github.com/repos/mb21/pandoc/languages","stargazers_url":"https://api.github.com/repos/mb21/pandoc/stargazers","contributors_url":"https://api.github.com/repos/mb21/pandoc/contributors","subscribers_url":"https://api.github.com/repos/mb21/pandoc/subscribers","subscription_url":"https://api.github.com/repos/mb21/pandoc/subscription","commits_url":"https://api.github.com/repos/mb21/pandoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/mb21/pandoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/mb21/pandoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/mb21/pandoc/issues/comments{/number}","contents_url":"https://api.github.com/repos/mb21/pandoc/contents/{+path}","compare_url":"https://api.github.com/repos/mb21/pandoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mb21/pandoc/merges","archive_url":"https://api.github.com/repos/mb21/pandoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mb21/pandoc/downloads","issues_url":"https://api.github.com/repos/mb21/pandoc/issues{/number}","pulls_url":"https://api.github.com/repos/mb21/pandoc/pulls{/number}","milestones_url":"https://api.github.com/repos/mb21/pandoc/milestones{/number}","notifications_url":"https://api.github.com/repos/mb21/pandoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mb21/pandoc/labels{/name}","releases_url":"https://api.github.com/repos/mb21/pandoc/releases{/id}","created_at":"2012-04-18T15:15:30Z","updated_at":"2015-09-30T10:07:05Z","pushed_at":"2015-12-03T19:48:27Z","git_url":"git://github.com/mb21/pandoc.git","ssh_url":"git@github.com:mb21/pandoc.git","clone_url":"https://github.com/mb21/pandoc.git","svn_url":"https://github.com/mb21/pandoc","homepage":"http://johnmacfarlane.net/pandoc","size":25967,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jgm:master","ref":"master","sha":"ad6578f6732a397a453249a5b66e1c5f63a6d847","user":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"repo":{"id":571770,"name":"pandoc","full_name":"jgm/pandoc","owner":{"login":"jgm","id":3044,"avatar_url":"https://avatars.githubusercontent.com/u/3044?v=3","gravatar_id":"","url":"https://api.github.com/users/jgm","html_url":"https://github.com/jgm","followers_url":"https://api.github.com/users/jgm/followers","following_url":"https://api.github.com/users/jgm/following{/other_user}","gists_url":"https://api.github.com/users/jgm/gists{/gist_id}","starred_url":"https://api.github.com/users/jgm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgm/subscriptions","organizations_url":"https://api.github.com/users/jgm/orgs","repos_url":"https://api.github.com/users/jgm/repos","events_url":"https://api.github.com/users/jgm/events{/privacy}","received_events_url":"https://api.github.com/users/jgm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jgm/pandoc","description":"Universal markup converter","fork":false,"url":"https://api.github.com/repos/jgm/pandoc","forks_url":"https://api.github.com/repos/jgm/pandoc/forks","keys_url":"https://api.github.com/repos/jgm/pandoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jgm/pandoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jgm/pandoc/teams","hooks_url":"https://api.github.com/repos/jgm/pandoc/hooks","issue_events_url":"https://api.github.com/repos/jgm/pandoc/issues/events{/number}","events_url":"https://api.github.com/repos/jgm/pandoc/events","assignees_url":"https://api.github.com/repos/jgm/pandoc/assignees{/user}","branches_url":"https://api.github.com/repos/jgm/pandoc/branches{/branch}","tags_url":"https://api.github.com/repos/jgm/pandoc/tags","blobs_url":"https://api.github.com/repos/jgm/pandoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jgm/pandoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jgm/pandoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/jgm/pandoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jgm/pandoc/statuses/{sha}","languages_url":"https://api.github.com/repos/jgm/pandoc/languages","stargazers_url":"https://api.github.com/repos/jgm/pandoc/stargazers","contributors_url":"https://api.github.com/repos/jgm/pandoc/contributors","subscribers_url":"https://api.github.com/repos/jgm/pandoc/subscribers","subscription_url":"https://api.github.com/repos/jgm/pandoc/subscription","commits_url":"https://api.github.com/repos/jgm/pandoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/jgm/pandoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/jgm/pandoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/jgm/pandoc/issues/comments{/number}","contents_url":"https://api.github.com/repos/jgm/pandoc/contents/{+path}","compare_url":"https://api.github.com/repos/jgm/pandoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jgm/pandoc/merges","archive_url":"https://api.github.com/repos/jgm/pandoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jgm/pandoc/downloads","issues_url":"https://api.github.com/repos/jgm/pandoc/issues{/number}","pulls_url":"https://api.github.com/repos/jgm/pandoc/pulls{/number}","milestones_url":"https://api.github.com/repos/jgm/pandoc/milestones{/number}","notifications_url":"https://api.github.com/repos/jgm/pandoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jgm/pandoc/labels{/name}","releases_url":"https://api.github.com/repos/jgm/pandoc/releases{/id}","created_at":"2010-03-20T20:34:23Z","updated_at":"2015-12-05T05:42:27Z","pushed_at":"2015-12-04T17:39:27Z","git_url":"git://github.com/jgm/pandoc.git","ssh_url":"git@github.com:jgm/pandoc.git","clone_url":"https://github.com/jgm/pandoc.git","svn_url":"https://github.com/jgm/pandoc","homepage":"http://johnmacfarlane.net/pandoc","size":28070,"stargazers_count":5280,"watchers_count":5280,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":699,"mirror_url":null,"open_issues_count":359,"forks":699,"open_issues":359,"watchers":5280,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jgm/pandoc/pulls/2568"},"html":{"href":"https://github.com/jgm/pandoc/pull/2568"},"issue":{"href":"https://api.github.com/repos/jgm/pandoc/issues/2568"},"comments":{"href":"https://api.github.com/repos/jgm/pandoc/issues/2568/comments"},"review_comments":{"href":"https://api.github.com/repos/jgm/pandoc/pulls/2568/comments"},"review_comment":{"href":"https://api.github.com/repos/jgm/pandoc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jgm/pandoc/pulls/2568/commits"},"statuses":{"href":"https://api.github.com/repos/jgm/pandoc/statuses/d901a3da03ee1cfef09ea3001a2917ce6e2896a2"}}}}