{"action":"created","issue":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/425","labels_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/425/labels{/name}","comments_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/425/comments","events_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/425/events","html_url":"https://github.com/Glavin001/atom-beautify/issues/425","id":91499691,"number":425,"title":"weird <script> action on saving","user":{"login":"bronze","id":170220,"avatar_url":"https://avatars.githubusercontent.com/u/170220?v=3","gravatar_id":"","url":"https://api.github.com/users/bronze","html_url":"https://github.com/bronze","followers_url":"https://api.github.com/users/bronze/followers","following_url":"https://api.github.com/users/bronze/following{/other_user}","gists_url":"https://api.github.com/users/bronze/gists{/gist_id}","starred_url":"https://api.github.com/users/bronze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronze/subscriptions","organizations_url":"https://api.github.com/users/bronze/orgs","repos_url":"https://api.github.com/users/bronze/repos","events_url":"https://api.github.com/users/bronze/events{/privacy}","received_events_url":"https://api.github.com/users/bronze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-27T18:26:01Z","updated_at":"2015-06-27T23:22:10Z","closed_at":null,"body":"Hi there\r\nI've stumbled upon a really weird error. When i put `<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js\"></script>` upon saving-and-beautifying it transforms to `<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js\"/>` and the next save clears everything below that line...\r\n\r\nTrying to find a rhyme or reason to it, made a few tests.\r\nIf the `<script></script>` are on different lines, it returns:\r\n```\r\n<script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js\">\r\nError: no source code supplied to jspretty!\r\n</script>\r\n```\r\n\r\nI've disabled all packages and the error stopped. Enabled only atom-beautify and it came back.\r\nTried with a .php and .html (maybe another extension would throw something else at me) but no luck.\r\nUnclicked everything under the javascript part on atom-beautify preferences, also no deal.\r\nGot no Snippets or Init Scripts.\r\n\r\nIf anyone wants to test, heres the original code (the `</head>` and everything under is deleted after second save):\r\n```\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n    <head>\r\n        <meta charset=\"utf-8\"/>\r\n        <meta content=\"width=device-width,initial-scale=1.0\" name=\"viewport\">\r\n        <title><?php echo $site->title()->html() ?>\r\n            |\r\n            <?php echo $page->title()->html() ?></title>\r\n        <meta content=\"<?php echo $site->description()->html() ?>\" name=\"description\">\r\n        <meta content=\"<?php echo $site->keywords()->html() ?>\" name=\"keywords\">\r\n        <?php echo css('assets/css/main.css') ?>\r\n        <script src=\"https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js\"></script>\r\n</head>\r\n<body>\r\n    <header class=\"header cf\" role=\"banner\">\r\n        <a class=\"logo\" href=\"<?php echo url() ?>\">\r\n            <img alt=\"<?php echo $site->title()->html() ?>\" src=\"<?php echo url('assets/images/logo.svg') ?>\"/>\r\n        </a>\r\n        <?php snippet('menu') ?>\r\n    </header>\r\n```\r\n\r\nVideo of the weird on-save http://cl.ly/bneX\r\n\r\ncheers!"},"comment":{"url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/comments/116165347","html_url":"https://github.com/Glavin001/atom-beautify/issues/425#issuecomment-116165347","issue_url":"https://api.github.com/repos/Glavin001/atom-beautify/issues/425","id":116165347,"user":{"login":"bronze","id":170220,"avatar_url":"https://avatars.githubusercontent.com/u/170220?v=3","gravatar_id":"","url":"https://api.github.com/users/bronze","html_url":"https://github.com/bronze","followers_url":"https://api.github.com/users/bronze/followers","following_url":"https://api.github.com/users/bronze/following{/other_user}","gists_url":"https://api.github.com/users/bronze/gists{/gist_id}","starred_url":"https://api.github.com/users/bronze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bronze/subscriptions","organizations_url":"https://api.github.com/users/bronze/orgs","repos_url":"https://api.github.com/users/bronze/repos","events_url":"https://api.github.com/users/bronze/events{/privacy}","received_events_url":"https://api.github.com/users/bronze/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T23:22:10Z","updated_at":"2015-06-27T23:22:10Z","body":"nice catch, switched away from Pretty Diff and it really stopped thx!"}}