diff --git a/help_test.go b/help_test.go index 6e758f8d30..e50d33e5f2 100644 --- a/help_test.go +++ b/help_test.go @@ -927,9 +927,13 @@ func TestWrappedHelp(t *testing.T) { Usage: "here's a sample App.Usage string long enough that it should be wrapped in this test", UsageText: "i'm not sure how App.UsageText differs from App.Usage, but this should also be wrapped in this test", // TODO: figure out how to make ArgsUsage appear in the help text, and test that - Description: "here's a sample App.Description string long enough that it should be wrapped in this test", + Description: `here's a sample App.Description string long enough that it should be wrapped in this test + +with a newline + and an indented line`, Copyright: `Here's a sample copyright text string long enough that it should be wrapped. Including newlines. + And also indented lines. And then another long line. Blah blah blah does anybody ever read these things?`, @@ -967,6 +971,9 @@ DESCRIPTION: App.Description string long enough that it should be wrapped in this test + + with a newline + and an indented line GLOBAL OPTIONS: --foo, -h here's a @@ -981,6 +988,7 @@ COPYRIGHT: text string long enough that it should be wrapped. Including newlines. + And also indented lines. And then another long line.