v2 bug: multi-line UsageText doesn't consistently indent in help output #1278
Labels
area/v2
relates to / is being considered for v2
kind/bug
describes or fixes a bug
status/triage
maintainers still need to look into this
my urfave/cli version is
latest master
Checklist
Dependency Management
Describe the bug
If your
UsageText
is multi-line, help outputUSAGE
only indents the first line 4 spaces, not the others.To reproduce
Add
UsageText
that includes at least one newline. Ex:Observed behavior
The first line indents, but the others don't.
Expected behavior
I would expect consistent indent because trying to manipulate
UsageText
to indent manually is awkward and fragile (ex guess 4 spaces)Additional context
Before #1171 this wouldn't render at all. Now it renders, but not quite right.
Want to fix this yourself?
could if reviewing my work is easier than fixing directly
Run
go version
and paste its output hereRun
go env
and paste its output hereThe text was updated successfully, but these errors were encountered: