{"action":"created","issue":{"url":"https://api.github.com/repos/prettydiff/prettydiff/issues/373","repository_url":"https://api.github.com/repos/prettydiff/prettydiff","labels_url":"https://api.github.com/repos/prettydiff/prettydiff/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/prettydiff/prettydiff/issues/373/comments","events_url":"https://api.github.com/repos/prettydiff/prettydiff/issues/373/events","html_url":"https://github.com/prettydiff/prettydiff/issues/373","id":178848090,"number":373,"title":"Twig issue. Part of twig code disappears after beautify.","user":{"login":"johanneslamers","id":4696315,"avatar_url":"https://avatars.githubusercontent.com/u/4696315?v=3","gravatar_id":"","url":"https://api.github.com/users/johanneslamers","html_url":"https://github.com/johanneslamers","followers_url":"https://api.github.com/users/johanneslamers/followers","following_url":"https://api.github.com/users/johanneslamers/following{/other_user}","gists_url":"https://api.github.com/users/johanneslamers/gists{/gist_id}","starred_url":"https://api.github.com/users/johanneslamers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanneslamers/subscriptions","organizations_url":"https://api.github.com/users/johanneslamers/orgs","repos_url":"https://api.github.com/users/johanneslamers/repos","events_url":"https://api.github.com/users/johanneslamers/events{/privacy}","received_events_url":"https://api.github.com/users/johanneslamers/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/prettydiff/prettydiff/labels/Defect","name":"Defect","color":"e11d21"},{"url":"https://api.github.com/repos/prettydiff/prettydiff/labels/Parsing","name":"Parsing","color":"006b75"},{"url":"https://api.github.com/repos/prettydiff/prettydiff/labels/Underway","name":"Underway","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/prettydiff/prettydiff/milestones/56","html_url":"https://github.com/prettydiff/prettydiff/milestones/2.1.12","labels_url":"https://api.github.com/repos/prettydiff/prettydiff/milestones/56/labels","id":2020624,"number":56,"title":"2.1.12","description":null,"creator":{"login":"prettydiff","id":524902,"avatar_url":"https://avatars.githubusercontent.com/u/524902?v=3","gravatar_id":"","url":"https://api.github.com/users/prettydiff","html_url":"https://github.com/prettydiff","followers_url":"https://api.github.com/users/prettydiff/followers","following_url":"https://api.github.com/users/prettydiff/following{/other_user}","gists_url":"https://api.github.com/users/prettydiff/gists{/gist_id}","starred_url":"https://api.github.com/users/prettydiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettydiff/subscriptions","organizations_url":"https://api.github.com/users/prettydiff/orgs","repos_url":"https://api.github.com/users/prettydiff/repos","events_url":"https://api.github.com/users/prettydiff/events{/privacy}","received_events_url":"https://api.github.com/users/prettydiff/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":0,"state":"open","created_at":"2016-09-21T23:04:25Z","updated_at":"2016-09-23T11:26:46Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-09-23T11:02:18Z","updated_at":"2016-09-23T11:41:01Z","closed_at":null,"body":"Hi\r\n\r\nI'm seeing the following issue. Try beautifying this code: \r\nhttp://prettydiff.com/ignore/testlocation/index.xhtml?m=beautify\r\n\r\n```` \r\n{% include [\r\n    \"item/\" ~ entry.section.handle ~ \"/\" ~ entry.type,\r\n    \"item/\" ~ entry.section.handle ~ \"/default\",\r\n    \"item/default\"\r\n] %}\r\n\r\n% set seo = {\r\n    seoTitle: seo.seoTitle,\r\n    seoDescription: seo.seoDescription,\r\n    seoKeywords: seo.seoKeywords,\r\n    seoImage: seo.seoImage,\r\n    canonicalUrl: seo.canonicalUrl,\r\n    twitter: {\r\n        card: seo.twitter.card,\r\n        site: seo.twitter.site,\r\n        creator: seo.twitter.creator,\r\n        title: seo.seoTitle,\r\n        description: seo.seoDescription,\r\n        image: seo.seoImage\r\n    },\r\n    og: {\r\n        type: seo.og.type,\r\n        locale: seo.og.locale,\r\n        url: seo.canonicalUrl,\r\n        title: seo.seoTitle,\r\n        description: seo.seoDescription,\r\n        image: seo.seoImage,\r\n        site_name: seo.og.site_name,\r\n        see_also: seo.og.see_also\r\n    }\r\n} %}\r\n\r\n````\r\n\r\nThe second part of the code (set seo) disappears. Also would love to have the first part beautified like the input. "},"comment":{"url":"https://api.github.com/repos/prettydiff/prettydiff/issues/comments/249170222","html_url":"https://github.com/prettydiff/prettydiff/issues/373#issuecomment-249170222","issue_url":"https://api.github.com/repos/prettydiff/prettydiff/issues/373","id":249170222,"user":{"login":"prettydiff","id":524902,"avatar_url":"https://avatars.githubusercontent.com/u/524902?v=3","gravatar_id":"","url":"https://api.github.com/users/prettydiff","html_url":"https://github.com/prettydiff","followers_url":"https://api.github.com/users/prettydiff/followers","following_url":"https://api.github.com/users/prettydiff/following{/other_user}","gists_url":"https://api.github.com/users/prettydiff/gists{/gist_id}","starred_url":"https://api.github.com/users/prettydiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prettydiff/subscriptions","organizations_url":"https://api.github.com/users/prettydiff/orgs","repos_url":"https://api.github.com/users/prettydiff/repos","events_url":"https://api.github.com/users/prettydiff/events{/privacy}","received_events_url":"https://api.github.com/users/prettydiff/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T11:41:01Z","updated_at":"2016-09-23T11:41:01Z","body":"The code sample appears broken.  `% set seo = {` should probably be `{% set seo = {`, as in the first curly brace is missing.  This partially solves the problem of the second missing code element.\r\n\r\nRemaining concerns:\r\n\r\n1. The contents inside the Twig tags should be beautified as JavaScript, which they aren't, at least for the first code element.\r\n2. Even when the opening curly brace is absent the remaining code should not be excluded.  At a minimum it should be included as text content even if broken.\r\n\r\nI am continuing to examine this."}}
{"actor":{"display_login":"prettydiff"}}