summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Penner <me@matthewp.io>2021-05-10 12:01:27 -0600
committerGitHub <noreply@github.com>2021-05-10 12:01:27 -0600
commitbc2210247861340c644d9825ac2b2860f8c6e12a (patch)
treeb17c0c3b702e635a2524904ae236cd1c4ccd4bc2 /modules/caddyhttp
parentf5db41ce1d4bb5ac75489f11985ca46898fb642e (diff)
caddyfile: Fix `caddy fmt` nesting not decrementing (#4157)
* caddyfile(formatter): fix nesting not decrementing This is an extremely weird edge-case where if you had a environment variable {} on one line, a comment on the next line, and the closing of the block on the following line; the rest of the Caddyfile would be indented further than it should've been. ref; https://github.com/matthewpi/vscode-caddyfile-support/issues/13 * run gofmt * fmt: better way of handling edge case
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/replacer_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/replacer_test.go b/modules/caddyhttp/replacer_test.go
index 486a8e3..5026ac8 100644
--- a/modules/caddyhttp/replacer_test.go
+++ b/modules/caddyhttp/replacer_test.go
@@ -173,7 +173,7 @@ eqp31wM9il1n+guTNyxJd+FzVAH+hCZE5K+tCgVDdVFUlDEHHbS/wqb2PSIoouLV
},
{
input: "{http.request.tls.client.certificate_pem}",
- expect: string(clientCert) + "\n", // returned value comes with a newline appended to it
+ expect: string(clientCert) + "\n", // returned value comes with a newline appended to it
},
} {
actual := repl.ReplaceAll(tc.input, "<empty>")