# [PATCH 3/4] Retain extra blank lines between the summary and the body

1 messages from 2008-02-17 to 2008-02-17. Participants: Daniel Barkalow.
Thread: https://gitlist.dev/t/12153

## Daniel Barkalow, 2008-02-17 18:35

Subject: [PATCH 3/4] Retain extra blank lines between the summary and the body
Message-ID: <alpine.LNX.1.00.0802171335490.5816@iabervon.org>
URL: https://gitlist.dev/e/alpine.LNX.1.00.0802171335490.5816%40iabervon.org

```
This is so that it's possible to have a message that will generate an
email with the first line blank. If the email you're generating is
actually a template, you may have a single line filling in for a
~3-line paragraph, meaning that the space starts with a blank line,
which was impossible before as output from the message-splitting code.

Furthermore, extra blank lines that aren't at the beginning of the
body portion aren't stripped, so this is more consistant overall.

Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
---
 pretty.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/pretty.c b/pretty.c
index f82380b..98efac2 100644
--- a/pretty.c
+++ b/pretty.c
@@ -713,7 +713,6 @@ void pp_remainder(enum cmit_fmt fmt,
 		  struct strbuf *sb,
 		  int indent)
 {
-	int first = 1;
 	for (;;) {
 		const char *line = *msg_p;
 		int linelen = get_one_line(line);
@@ -723,12 +722,9 @@ void pp_remainder(enum cmit_fmt fmt,
 			break;
 
 		if (is_empty_line(line, &linelen)) {
-			if (first)
-				continue;
 			if (fmt == CMIT_FMT_SHORT)
 				break;
 		}
-		first = 0;
 
 		strbuf_grow(sb, linelen + indent + 20);
 		if (indent) {
-- 
1.5.4.1.1350.g2b9ee

```
