Browse Source
Mailinfo currently handles multi-line headers, but it does not handle multi-line in-body headers. Teach it to handle such headers, for example, for this input: From: author <author@example.com> Date: Fri, 9 Jun 2006 00:44:16 -0700 Subject: a very long broken line Subject: another very long broken line interpret the in-body subject to be "another very long broken line" instead of "another very long". An existing test (t/t5100/msg0015) has an indented line immediately after an in-body header - it has been modified to reflect the new functionality. Signed-off-by: Jonathan Tan <jonathantanmy@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
Jonathan Tan
8 years ago
committed by
Junio C Hamano
12 changed files with 125 additions and 4 deletions
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
Author: Another Thor |
||||
Email: a.thor@example.com |
||||
Subject: This one contains a tab and a space |
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700 |
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
Author: A U Thor |
||||
Email: a.u.thor@example.com |
||||
Subject: check multiline inbody headers |
||||
Date: Fri, 9 Jun 2006 00:44:16 -0700 |
||||
|
@ -0,0 +1,8 @@
@@ -0,0 +1,8 @@
|
||||
From: Another Thor |
||||
<a.thor@example.com> |
||||
Subject: This one contains |
||||
a tab |
||||
and a space |
||||
|
||||
a commit message |
||||
|
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
diff --git a/foo b/foo |
||||
index e69de29..d95f3ad 100644 |
||||
--- a/foo |
||||
+++ b/foo |
||||
@@ -0,0 +1 @@ |
||||
+content |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
diff --git a/foo b/foo |
||||
index e69de29..d95f3ad 100644 |
||||
--- a/foo |
||||
+++ b/foo |
||||
@@ -0,0 +1 @@ |
||||
+content |
Loading…
Reference in new issue