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

Formatter inserts unwanted space between two consecutive interpolation sequences #65

Closed
apparentlymart opened this issue Dec 21, 2018 · 0 comments · Fixed by #77
Closed

Comments

@apparentlymart
Copy link
Member

Given a string like this:

  "${foo}${bar}"

...the auto-formatter wants to insert a space between the two sequences, changing the meaning:

  "${foo} ${bar}"

Spacing should never be adjusted when we're between OQuote/OHeredoc tokens and their corresponding CQuote/CHeredoc tokens, except within interpolation/directive sequences.

acburdine added a commit to acburdine/hcl2 that referenced this issue Jan 16, 2019
closes hashicorp#65
- add missing edge case for two interpolated items next to each other
acburdine added a commit to acburdine/hcl2 that referenced this issue Jan 16, 2019
closes hashicorp#65
- add missing edge case for two interpolated items next to each other
- add tests for both quote and heredoc cases
apparentlymart pushed a commit that referenced this issue Jan 16, 2019
closes #65
- add missing edge case for two interpolated items next to each other
- add tests for both quote and heredoc cases
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.

1 participant