Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

terraform fmt repeatedly indents multiline strings #9859

Closed
erikh opened this issue Nov 4, 2016 · 2 comments · Fixed by #9860
Closed

terraform fmt repeatedly indents multiline strings #9859

erikh opened this issue Nov 4, 2016 · 2 comments · Fixed by #9860
Assignees

Comments

@erikh
Copy link

erikh commented Nov 4, 2016

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

0.7.8

Affected Resource(s)

none

Terraform Configuration Files

resource "null_resource" "some_command" {
  provisioner "local-exec" {
    command = "echo '
some newlines
and additonal output'"
  }
}

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform fmt of the above should further indent the inside of the "echo" statement each terraform fmt run.

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

I looked but found none.

mitchellh added a commit to hashicorp/hcl that referenced this issue Nov 4, 2016
Fixes hashicorp/terraform#9859

For strings that have more than one line, we should not indent the
follow-up lines.
mitchellh added a commit to hashicorp/hcl that referenced this issue Nov 4, 2016
Fixes hashicorp/terraform#9859

For strings that have more than one line, we should not indent the
follow-up lines.
@mitchellh mitchellh self-assigned this Nov 4, 2016
@mitchellh
Copy link
Contributor

Good catch. I have a fix in the HCL PR referenced in this issue.

@ghost
Copy link

ghost commented Apr 20, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Apr 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants