{"action":"opened","number":144,"pull_request":{"url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls/144","id":36230410,"html_url":"https://github.com/akalongman/sublimetext-codeformatter/pull/144","diff_url":"https://github.com/akalongman/sublimetext-codeformatter/pull/144.diff","patch_url":"https://github.com/akalongman/sublimetext-codeformatter/pull/144.patch","issue_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/issues/144","number":144,"state":"open","locked":false,"title":"Make HTML Beautifier more powerful","user":{"login":"RevanProdigalKnight","id":5728037,"avatar_url":"https://avatars.githubusercontent.com/u/5728037?v=3","gravatar_id":"","url":"https://api.github.com/users/RevanProdigalKnight","html_url":"https://github.com/RevanProdigalKnight","followers_url":"https://api.github.com/users/RevanProdigalKnight/followers","following_url":"https://api.github.com/users/RevanProdigalKnight/following{/other_user}","gists_url":"https://api.github.com/users/RevanProdigalKnight/gists{/gist_id}","starred_url":"https://api.github.com/users/RevanProdigalKnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RevanProdigalKnight/subscriptions","organizations_url":"https://api.github.com/users/RevanProdigalKnight/orgs","repos_url":"https://api.github.com/users/RevanProdigalKnight/repos","events_url":"https://api.github.com/users/RevanProdigalKnight/events{/privacy}","received_events_url":"https://api.github.com/users/RevanProdigalKnight/received_events","type":"User","site_admin":false},"body":"The current HTML Beautifier doesn't attempt very much on files that are not already partly beautified by the user, which makes it difficult to find things in code-generated HTML code.\r\n\r\nThis fixes the aforementioned problems with the current HTML beautifier by forcing all tags to appear on their own lines and then coercing indentation on all tags that are not defined in the HTML5 spec as \"void\" tags.\r\n\r\nIt also adds new configuration options:\r\n- `expand_javascript`: Expand and format (minified?) Javascript/CSS inside an HTML file\r\n- `expand_tags`: Expand tags with multiple attributes to multiple lines\r\n  - `minimum_attribute_count`: The minimum number of attributes a tag should have before it is expanded to multiple lines\r\n- `exception_on_tag_mismatch`: Performs basic tag \"matching\" by throwing an exception if the end indentation is not equal to `0`. Since the HTML Beautifier still doesn't employ a full-on parser, I didn't go further than that\r\n- `reduce_empty_tags`: If a tag contains no content, it (and its matching end tag, if any) will be put on a single line with no space in between\r\n\r\nThe following configuration options were removed because the new implementation does not support them:\r\n- `preserve_newlines`\r\n- `max_preserve_newlines`\r\n\r\nThe option `indent_tags` was removed because the new implementation indents all tags that are not defined by the HTML 5 spec to be \"void\" (a tag that can end itself, also known as a singleton), and those tags are now defined inside the HTML Beautifier\r\n\r\nThe HTML Beautifier's output now much more closely resembles that of [JSBeautifier.org](http://jsbeautifier.org/)'s regardless of the original file structure, with the only major exceptions being that the `head` and `body` tags are indented inside of the `body` tag (as opposed to being on the same level of indentation), and newlines are not preserved.","created_at":"2015-05-26T18:18:05Z","updated_at":"2015-05-26T18:18:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls/144/commits","review_comments_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls/144/comments","review_comment_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/issues/144/comments","statuses_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/statuses/9991ef4423820047315238cc5e80aa387366dbce","head":{"label":"RevanProdigalKnight:patch-1","ref":"patch-1","sha":"9991ef4423820047315238cc5e80aa387366dbce","user":{"login":"RevanProdigalKnight","id":5728037,"avatar_url":"https://avatars.githubusercontent.com/u/5728037?v=3","gravatar_id":"","url":"https://api.github.com/users/RevanProdigalKnight","html_url":"https://github.com/RevanProdigalKnight","followers_url":"https://api.github.com/users/RevanProdigalKnight/followers","following_url":"https://api.github.com/users/RevanProdigalKnight/following{/other_user}","gists_url":"https://api.github.com/users/RevanProdigalKnight/gists{/gist_id}","starred_url":"https://api.github.com/users/RevanProdigalKnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RevanProdigalKnight/subscriptions","organizations_url":"https://api.github.com/users/RevanProdigalKnight/orgs","repos_url":"https://api.github.com/users/RevanProdigalKnight/repos","events_url":"https://api.github.com/users/RevanProdigalKnight/events{/privacy}","received_events_url":"https://api.github.com/users/RevanProdigalKnight/received_events","type":"User","site_admin":false},"repo":{"id":36313241,"name":"sublimetext-codeformatter","full_name":"RevanProdigalKnight/sublimetext-codeformatter","owner":{"login":"RevanProdigalKnight","id":5728037,"avatar_url":"https://avatars.githubusercontent.com/u/5728037?v=3","gravatar_id":"","url":"https://api.github.com/users/RevanProdigalKnight","html_url":"https://github.com/RevanProdigalKnight","followers_url":"https://api.github.com/users/RevanProdigalKnight/followers","following_url":"https://api.github.com/users/RevanProdigalKnight/following{/other_user}","gists_url":"https://api.github.com/users/RevanProdigalKnight/gists{/gist_id}","starred_url":"https://api.github.com/users/RevanProdigalKnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RevanProdigalKnight/subscriptions","organizations_url":"https://api.github.com/users/RevanProdigalKnight/orgs","repos_url":"https://api.github.com/users/RevanProdigalKnight/repos","events_url":"https://api.github.com/users/RevanProdigalKnight/events{/privacy}","received_events_url":"https://api.github.com/users/RevanProdigalKnight/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RevanProdigalKnight/sublimetext-codeformatter","description":"Code Formatter plugin for ST2/ST3","fork":true,"url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter","forks_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/forks","keys_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/teams","hooks_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/hooks","issue_events_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/issues/events{/number}","events_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/events","assignees_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/assignees{/user}","branches_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/branches{/branch}","tags_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/tags","blobs_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/git/refs{/sha}","trees_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/statuses/{sha}","languages_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/languages","stargazers_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/stargazers","contributors_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/contributors","subscribers_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/subscribers","subscription_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/subscription","commits_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/commits{/sha}","git_commits_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/git/commits{/sha}","comments_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/comments{/number}","issue_comment_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/issues/comments{/number}","contents_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/contents/{+path}","compare_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/merges","archive_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/downloads","issues_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/issues{/number}","pulls_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/pulls{/number}","milestones_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/milestones{/number}","notifications_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/labels{/name}","releases_url":"https://api.github.com/repos/RevanProdigalKnight/sublimetext-codeformatter/releases{/id}","created_at":"2015-05-26T17:46:38Z","updated_at":"2015-05-26T17:46:39Z","pushed_at":"2015-05-26T18:00:18Z","git_url":"git://github.com/RevanProdigalKnight/sublimetext-codeformatter.git","ssh_url":"git@github.com:RevanProdigalKnight/sublimetext-codeformatter.git","clone_url":"https://github.com/RevanProdigalKnight/sublimetext-codeformatter.git","svn_url":"https://github.com/RevanProdigalKnight/sublimetext-codeformatter","homepage":null,"size":821,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"akalongman:master","ref":"master","sha":"06621b83c289ab030284c4a002289719d46886c2","user":{"login":"akalongman","id":423050,"avatar_url":"https://avatars.githubusercontent.com/u/423050?v=3","gravatar_id":"","url":"https://api.github.com/users/akalongman","html_url":"https://github.com/akalongman","followers_url":"https://api.github.com/users/akalongman/followers","following_url":"https://api.github.com/users/akalongman/following{/other_user}","gists_url":"https://api.github.com/users/akalongman/gists{/gist_id}","starred_url":"https://api.github.com/users/akalongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akalongman/subscriptions","organizations_url":"https://api.github.com/users/akalongman/orgs","repos_url":"https://api.github.com/users/akalongman/repos","events_url":"https://api.github.com/users/akalongman/events{/privacy}","received_events_url":"https://api.github.com/users/akalongman/received_events","type":"User","site_admin":false},"repo":{"id":8800855,"name":"sublimetext-codeformatter","full_name":"akalongman/sublimetext-codeformatter","owner":{"login":"akalongman","id":423050,"avatar_url":"https://avatars.githubusercontent.com/u/423050?v=3","gravatar_id":"","url":"https://api.github.com/users/akalongman","html_url":"https://github.com/akalongman","followers_url":"https://api.github.com/users/akalongman/followers","following_url":"https://api.github.com/users/akalongman/following{/other_user}","gists_url":"https://api.github.com/users/akalongman/gists{/gist_id}","starred_url":"https://api.github.com/users/akalongman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akalongman/subscriptions","organizations_url":"https://api.github.com/users/akalongman/orgs","repos_url":"https://api.github.com/users/akalongman/repos","events_url":"https://api.github.com/users/akalongman/events{/privacy}","received_events_url":"https://api.github.com/users/akalongman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akalongman/sublimetext-codeformatter","description":"Code Formatter plugin for ST2/ST3","fork":false,"url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter","forks_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/forks","keys_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/teams","hooks_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/hooks","issue_events_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/issues/events{/number}","events_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/events","assignees_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/assignees{/user}","branches_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/branches{/branch}","tags_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/tags","blobs_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/git/refs{/sha}","trees_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/statuses/{sha}","languages_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/languages","stargazers_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/stargazers","contributors_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/contributors","subscribers_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/subscribers","subscription_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/subscription","commits_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/commits{/sha}","git_commits_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/git/commits{/sha}","comments_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/comments{/number}","issue_comment_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/issues/comments{/number}","contents_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/contents/{+path}","compare_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/merges","archive_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/downloads","issues_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/issues{/number}","pulls_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls{/number}","milestones_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/milestones{/number}","notifications_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/labels{/name}","releases_url":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/releases{/id}","created_at":"2013-03-15T14:19:05Z","updated_at":"2015-05-26T10:53:33Z","pushed_at":"2015-04-23T05:08:28Z","git_url":"git://github.com/akalongman/sublimetext-codeformatter.git","ssh_url":"git@github.com:akalongman/sublimetext-codeformatter.git","clone_url":"https://github.com/akalongman/sublimetext-codeformatter.git","svn_url":"https://github.com/akalongman/sublimetext-codeformatter","homepage":null,"size":1479,"stargazers_count":298,"watchers_count":298,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":54,"mirror_url":null,"open_issues_count":81,"forks":54,"open_issues":81,"watchers":298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls/144"},"html":{"href":"https://github.com/akalongman/sublimetext-codeformatter/pull/144"},"issue":{"href":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/issues/144"},"comments":{"href":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/akalongman/sublimetext-codeformatter/statuses/9991ef4423820047315238cc5e80aa387366dbce"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":137,"deletions":166,"changed_files":2}}