terraform/command/testdata/fmt
Alisdair McDiarmid d71f0c6149 cli: Fix fmt output for multi-line value exprs
The formatter for value expressions which use legacy interpolation
syntax was previously behaving incorrectly with some multi-line
expressions. Any HCL expression which requires parenthesis to be allowed
to span multiple lines could be skip those parens if already inside
string interpolation (`"${}"`).

When removing string interpolation, we now check for a resulting
multi-line expression, and conservatively ensure that it starts and ends
with parenthesis. These may be redundant, as not all expressions require
parens to permit spanning multiple lines, but at least it will be valid
output.
2021-03-25 15:40:54 -04:00
..
general_in.tf cli: Fix fmt output for multi-line value exprs 2021-03-25 15:40:54 -04:00
general_out.tf cli: Fix fmt output for multi-line value exprs 2021-03-25 15:40:54 -04:00
variable_type_in.tf command/fmt: Restore some opinionated behaviors 2020-09-28 09:04:03 -07:00
variable_type_out.tf command/fmt: Restore some opinionated behaviors 2020-09-28 09:04:03 -07:00