mirror of
https://github.com/hashicorp/terraform.git
synced 2026-02-12 23:43:17 -05:00
The console and output formatter previously displayed multi-line strings with escaped newlines, e.g. `"hello\nworld\n"`. While this is a valid way to write the HCL string, it is not as common or as readable as using the heredoc syntax, e.g. <<EOF hello world EOF This commit adds heredoc detection and display to this formatter, including support for indented heredocs for nested multi-line strings. This change affects the apply, console, and output sub-commands. |
||
|---|---|---|
| .. | ||
| testdata/config-fixture | ||
| format.go | ||
| format_test.go | ||
| repl.go | ||
| session.go | ||
| session_test.go | ||