Skip to content
This repository has been archived by the owner on Oct 11, 2018. It is now read-only.

Multiple comment lines split by newlines #3

Closed
jfelixetcetera opened this issue Jan 5, 2016 · 3 comments
Closed

Multiple comment lines split by newlines #3

jfelixetcetera opened this issue Jan 5, 2016 · 3 comments

Comments

@jfelixetcetera
Copy link

Maybe this is desired behavior, but currently hclfmt converts this:

### comment line one
### comment line two
provider "aws" {
  foo = "bar"
}

as:

### comment line one

### comment line two
provider "aws" {
  foo = "bar"
}

It correctly (IMO) keeps the second comment directly above the provider object, but otherwise splits the comments.

I know multiline comments can be created with /**/, but the current behavior still seems odd.

@mssola
Copy link

mssola commented Mar 16, 2016

I used to be able to reproduce this, but I no longer can with master hcl.

@fatih
Copy link
Owner

fatih commented Mar 16, 2016

@joshuajabbour can you please update hclfmt and try it again?

@jfelixetcetera
Copy link
Author

This is also no longer occurring for me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants