{"action":"created","issue":{"url":"https://api.github.com/repos/PrismJS/prism/issues/935","repository_url":"https://api.github.com/repos/PrismJS/prism","labels_url":"https://api.github.com/repos/PrismJS/prism/issues/935/labels{/name}","comments_url":"https://api.github.com/repos/PrismJS/prism/issues/935/comments","events_url":"https://api.github.com/repos/PrismJS/prism/issues/935/events","html_url":"https://github.com/PrismJS/prism/issues/935","id":149618293,"number":935,"title":"Remove initial line feed plugin + php component = bad line numbering","user":{"login":"rzvc","id":7192924,"avatar_url":"https://avatars.githubusercontent.com/u/7192924?v=3","gravatar_id":"","url":"https://api.github.com/users/rzvc","html_url":"https://github.com/rzvc","followers_url":"https://api.github.com/users/rzvc/followers","following_url":"https://api.github.com/users/rzvc/following{/other_user}","gists_url":"https://api.github.com/users/rzvc/gists{/gist_id}","starred_url":"https://api.github.com/users/rzvc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rzvc/subscriptions","organizations_url":"https://api.github.com/users/rzvc/orgs","repos_url":"https://api.github.com/users/rzvc/repos","events_url":"https://api.github.com/users/rzvc/events{/privacy}","received_events_url":"https://api.github.com/users/rzvc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-04-20T00:17:18Z","updated_at":"2016-07-19T22:29:59Z","closed_at":"2016-07-14T09:07:42Z","body":"The \"remove initial line feed\" plugin gets triggered on \"before-highlight\" and changes env.code (removes the redundant initial line feed).\r\n\r\nThe php component has a hook on \"before-insert\", which restores env.code to env.backupCode.\r\n\r\nThe line numbering plugin gets triggered on \"complete\" and uses env.code to figure out how many lines there are so it counts an extra line.\r\n\r\nPossible fix (works fine for me): env.backupCode = env.code; in the Remove Initial Line Feed plugin."},"comment":{"url":"https://api.github.com/repos/PrismJS/prism/issues/comments/233786261","html_url":"https://github.com/PrismJS/prism/issues/935#issuecomment-233786261","issue_url":"https://api.github.com/repos/PrismJS/prism/issues/935","id":233786261,"user":{"login":"LeaVerou","id":175836,"avatar_url":"https://avatars.githubusercontent.com/u/175836?v=3","gravatar_id":"","url":"https://api.github.com/users/LeaVerou","html_url":"https://github.com/LeaVerou","followers_url":"https://api.github.com/users/LeaVerou/followers","following_url":"https://api.github.com/users/LeaVerou/following{/other_user}","gists_url":"https://api.github.com/users/LeaVerou/gists{/gist_id}","starred_url":"https://api.github.com/users/LeaVerou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeaVerou/subscriptions","organizations_url":"https://api.github.com/users/LeaVerou/orgs","repos_url":"https://api.github.com/users/LeaVerou/repos","events_url":"https://api.github.com/users/LeaVerou/events{/privacy}","received_events_url":"https://api.github.com/users/LeaVerou/received_events","type":"User","site_admin":false},"created_at":"2016-07-19T22:29:59Z","updated_at":"2016-07-19T22:29:59Z","body":"@Golmote @zeitgeist87 Why do we have a remove initial line feed plugin? Isn't this covered by the whitespace normalizer?"}}
{"actor":{"display_login":"LeaVerou"}}