{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/6375","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/6375/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/6375/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/6375/events","html_url":"https://github.com/hashicorp/terraform/issues/6375","id":151387526,"number":6375,"title":"`terraform fmt` adds extra lines in comment blocks","user":{"login":"BrianHicks","id":355401,"avatar_url":"https://avatars.githubusercontent.com/u/355401?v=3","gravatar_id":"","url":"https://api.github.com/users/BrianHicks","html_url":"https://github.com/BrianHicks","followers_url":"https://api.github.com/users/BrianHicks/followers","following_url":"https://api.github.com/users/BrianHicks/following{/other_user}","gists_url":"https://api.github.com/users/BrianHicks/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianHicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianHicks/subscriptions","organizations_url":"https://api.github.com/users/BrianHicks/orgs","repos_url":"https://api.github.com/users/BrianHicks/repos","events_url":"https://api.github.com/users/BrianHicks/events{/privacy}","received_events_url":"https://api.github.com/users/BrianHicks/received_events","type":"User","site_admin":false},"labels":[{"id":85946957,"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7","default":true},{"id":127939292,"url":"https://api.github.com/repos/hashicorp/terraform/labels/core","name":"core","color":"cccccc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-04-27T13:38:39Z","updated_at":"2016-10-30T22:25:59Z","closed_at":"2016-10-30T22:25:59Z","body":"### Terraform Version\n\n```\n$ terraform -v\nTerraform v0.6.15\n```\n### Affected Resource(s)\n\nn/a\n### Terraform Configuration Files\n\n``` hcl\n# this is a long comment block spanning multiple lines. I would expect\n# `terraform fmt` to keep the lines together, but it doesn't.\n```\n### Debug Output\n\nhttps://gist.github.com/BrianHicks/45196caa7824eb6758ea071ecf2974b0\n### Expected Behavior\n\nThe comment block should have been left intact, as in the sample above.\n### Actual Behavior\n\nActual output:\n\n``` hcl\n\n\n# this is a long comment block spanning multiple lines. I would expect\n\n\n# `terraform fmt` to keep the lines together, but it doesn't.\n\n```\n\nAll newlines included.\n### Steps to Reproduce\n1. paste the above configuration into `x.tf`\n2. run `terraform fmt x.tf`\n3. observe the resulting file contents\n### Important Factoids\n\nInstalled via homebrew\n### References\n\nCouldn't find any.\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/comments/257184236","html_url":"https://github.com/hashicorp/terraform/issues/6375#issuecomment-257184236","issue_url":"https://api.github.com/repos/hashicorp/terraform/issues/6375","id":257184236,"user":{"login":"mitchellh","id":1299,"avatar_url":"https://avatars.githubusercontent.com/u/1299?v=3","gravatar_id":"","url":"https://api.github.com/users/mitchellh","html_url":"https://github.com/mitchellh","followers_url":"https://api.github.com/users/mitchellh/followers","following_url":"https://api.github.com/users/mitchellh/following{/other_user}","gists_url":"https://api.github.com/users/mitchellh/gists{/gist_id}","starred_url":"https://api.github.com/users/mitchellh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitchellh/subscriptions","organizations_url":"https://api.github.com/users/mitchellh/orgs","repos_url":"https://api.github.com/users/mitchellh/repos","events_url":"https://api.github.com/users/mitchellh/events{/privacy}","received_events_url":"https://api.github.com/users/mitchellh/received_events","type":"User","site_admin":false},"created_at":"2016-10-30T22:25:59Z","updated_at":"2016-10-30T22:25:59Z","body":"This is fixed!"}}
{"actor":{"display_login":"mitchellh"}}