-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
bug πSomething isn't workingSomething isn't workinghelp wanted πExtra attention is neededExtra attention is needed
Description
Issue Details
Messing around with trying templating, and found that the caddy fmt command doesn't handle multi-line strings properly, as in that it will change their content.
For example, with this Caddyfile:
{
local_certs
key_type rsa2048
}
https://localhost:8953 {
log
templates
header Content-Type text/plain
respond `Here are some random numbers:
{{randNumeric 16}}
Hope this helps.`
}
running fmt will output this:
{
local_certs
key_type rsa2048
}
https://localhost:8953 {
log
templates
header Content-Type text/plain
respond `Here are some random numbers: {{
randNumeric 16}}
Hope this helps.`
}
Needless to say, these will not have the same output.
I'm using the win64 build of 2.10.2 found under the GitHub releases.
Assistance Disclosure
AI not used
If AI was used, describe the extent to which it was used.
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bug πSomething isn't workingSomething isn't workinghelp wanted πExtra attention is neededExtra attention is needed