@@ -616,17 +616,17 @@ func TestMultiline(t *testing.T) {
616616 name : "list" ,
617617 args : []string {"-d" , "testdata/multiline" , "-l" },
618618 // line returns at the end here are important to show that we don't add an extra line return.
619- output : "This is a global comment for the mage output.\n It should be retained with CRLF .\n \n Targets:" ,
619+ output : "This is a global comment for the mage output.\n It should retain line returns .\n \n Targets:" ,
620620 },
621621 {
622622 name : "help-func" ,
623623 args : []string {"-d" , "testdata/multiline" , "-h" , "doit" },
624- output : "DoIt is a dummy function with a crlf comment.\n That should show up with multiple lines.\n \n Usage:" ,
624+ output : "DoIt is a dummy function with a multiline comment.\n That should show up with multiple lines.\n \n Usage:" ,
625625 },
626626 {
627627 name : "help-func" ,
628628 args : []string {"-d" , "testdata/multiline" , "-h" , "sub:doittoo" },
629- output : "DoItToo is a dummy function with a crlf comment.\n Here's the second line.\n \n Usage:" ,
629+ output : "DoItToo is a dummy function with a multiline comment.\n Here's the second line.\n \n Usage:" ,
630630 },
631631 } {
632632 t .Run (tc .name , func (t * testing.T ) {
@@ -656,17 +656,17 @@ func TestMultilineTag(t *testing.T) {
656656 name : "list" ,
657657 args : []string {"-d" , "testdata/multiline/tag" , "-l" },
658658 // line returns at the end here are important to show that we don't add an extra line return.
659- output : "This is a global comment for the mage output.\n It should be retained with CRLF .\n \n Targets:" ,
659+ output : "This is a global comment for the mage output.\n It should retain line returns .\n \n Targets:" ,
660660 },
661661 {
662662 name : "help-func" ,
663663 args : []string {"-d" , "testdata/multiline/tag" , "-h" , "doit" },
664- output : "DoIt is a dummy function with a crlf comment.\n That should show up with multiple lines.\n \n Usage:" ,
664+ output : "DoIt is a dummy function with a multiline comment.\n That should show up with multiple lines.\n \n Usage:" ,
665665 },
666666 {
667667 name : "help-func" ,
668668 args : []string {"-d" , "testdata/multiline/tag" , "-h" , "sub:doittoo" },
669- output : "DoItToo is a dummy function with a crlf comment.\n Here's the second line.\n \n Usage:" ,
669+ output : "DoItToo is a dummy function with a multiline comment.\n Here's the second line.\n \n Usage:" ,
670670 },
671671 } {
672672 // The tests should be the same regardless of the environment variable, because the tag should override.
0 commit comments