In testing 0.14.0-rc1, I’ve come across an issues which appear to be a regression. Unless this is already tracked elsewhere, I’ll go ahead and open a new for this in github.
Issue: terraform output no longer respects newline characters
I used to get…
my_out = This is a
multiline
string.
but now I get:
my_out = This is a\nmultiline\nstring.
This is problematic since I have several modules which render outputs with URLs for the user to click on - those are now completely mashed and the multi-line output is no longer readable.
By chance, is this known/expected with 0.14.0-rc?
UPDATE: second issue regarding invalid auto-reformat:
I also noted that running terraform fmt on my existing project created a few syntax errors due to incorrect handling of parenthesis…
locals {
value_a = ([
[1,2,3],
[1]
])
value_b = 4
}
…becomes syntactically invalid after terraform fmt:
locals {
value_a = ([
[1, 2, 3],
[1]
]
) value_b = 4
}