diff --git a/caddyconfig/caddyfile/formatter_test.go b/caddyconfig/caddyfile/formatter_test.go index 8b1213dff..6fd099d0c 100644 --- a/caddyconfig/caddyfile/formatter_test.go +++ b/caddyconfig/caddyfile/formatter_test.go @@ -399,6 +399,25 @@ block { Here's more than one space Here's more than one space HEREDOC } +`, + }, + { + description: "keep heredoc whose body contains the marker mid-line", + input: `block { + heredoc <