docopt.go icon indicating copy to clipboard operation
docopt.go copied to clipboard

Saner indentation handling

Open mcandre opened this issue 9 years ago • 1 comments

Normally, the docopt spec would have usage strings indenting with two spaces. However, Go formatting overall prefers a hard tab, which often conflicts with styling tools like gofmt.

When the usage string (e.g., a Go multiline backticked string) has a mix of hard and soft tabs, docopt prints a misaligned help message. While this is a cosmetic error, this conflict risks causing parse errors.

For docopt-go, could we expand the parser to treat \t as equivalent to two spaces?

mcandre avatar Nov 30 '16 02:11 mcandre

Wow, this has been open for awhile with no response?

ghostsquad avatar Nov 13 '17 19:11 ghostsquad