From: Erik Faye-Lund Date: Thu, 14 Apr 2011 21:07:41 GMT Subject: Re: [BUG] format-patch does not wrap From-field after author name Message-ID: In-Reply-To: <20110414175212.GB23342@sigill.intra.peff.net> On Thu, Apr 14, 2011 at 7:52 PM, Jeff King wrote: > On Thu, Apr 14, 2011 at 07:01:41PM +0200, Erik Faye-Lund wrote: > >> diff --git a/t/t4014-format-patch.sh b/t/t4014-format-patch.sh >> index 9c66367..a4b8b59 100755 >> --- a/t/t4014-format-patch.sh >> +++ b/t/t4014-format-patch.sh >> @@ -793,4 +793,19 @@ test_expect_success 'format-patch wraps extremely >> long headers (rfc2047)' ' > > Speaking of wrapping, your MUA seems to have mangled the patch. > Hehe, yes. How ironic :) What can I say, silly GMail? :P >> +M8="foo_bar_" >> +M64=$M8$M8$M8$M8$M8$M8$M8$M8 >> +cat >expect <<'EOF' >> +From: foo_bar_foo_bar_foo_bar_foo_bar_foo_bar_foo_bar_foo_bar_foo_bar >> + >> +EOF > > Your expect data is missing the trailing "_". You could probably just > do: > >  cat >expect <  From: $M64 >   >  EOF > > which is even simpler. > Yes. Much better, thanks.