mvdan / sh

A shell parser, formatter, and interpreter with bash support; includes shfmt
https://pkg.go.dev/mvdan.cc/sh/v3
BSD 3-Clause "New" or "Revised" License
6.98k stars 332 forks source link

[Bug] changes strings #1023

Closed Jomik closed 11 months ago

Jomik commented 11 months ago

We have a help text written as a multiline string. When running shfmt on the script, it removes all indentation we did in the script. This makes it harder to read the usage, so we do not want that.

Why does shfmt change a string literal?

Jomik commented 11 months ago

My bad, I think that may have been a misconfiguration on my end :)