593569e
From lkundrak@v3.sk Thu Jan 28 20:57:48 2016
593569e
Return-Path: lkundrak@v3.sk
593569e
Received: from zimbra.v3.sk (LHLO zimbra.v3.sk) (10.13.37.31) by
593569e
 zimbra.v3.sk with LMTP; Thu, 28 Jan 2016 20:57:48 +0100 (CET)
593569e
Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix)
593569e
 with ESMTP id D4DD260F92 for <lkundrak@v3.sk>; Thu, 28 Jan 2016 20:57:47
593569e
 +0100 (CET)
593569e
X-Spam-Flag: NO
593569e
X-Spam-Score: -2.9
593569e
X-Spam-Level: 
593569e
X-Spam-Status: No, score=-2.9 tagged_above=-10 required=3
593569e
 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=ham autolearn_force=no
593569e
Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk
593569e
 [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id HB5H5ynfOcyL; Thu, 28
593569e
 Jan 2016 20:57:45 +0100 (CET)
593569e
Received: from localhost (localhost [127.0.0.1]) by zimbra.v3.sk (Postfix)
593569e
 with ESMTP id 3FEF160F90; Thu, 28 Jan 2016 20:57:45 +0100 (CET)
593569e
X-Virus-Scanned: amavisd-new at zimbra.v3.sk
593569e
Received: from shell.v3.sk ([127.0.0.1]) by localhost (zimbra.v3.sk
593569e
 [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id TUF9p5l6r9SN; Thu, 28
593569e
 Jan 2016 20:57:44 +0100 (CET)
593569e
Received: from odvarok.localdomain (s559633cb.adsl.online.nl
593569e
 [85.150.51.203]) by zimbra.v3.sk (Postfix) with ESMTPSA id 6763560F8F; Thu,
593569e
 28 Jan 2016 20:57:44 +0100 (CET)
593569e
From: Lubomir Rintel <lkundrak@v3.sk>
593569e
To: =?UTF-8?q?Ond=C5=99ej=20Va=C5=A1=C3=ADk?= <ovasik@redhat.com>, Ondrej
593569e
 Oprala <ooprala@redhat.com>
593569e
Cc: Lubomir Rintel <lkundrak@v3.sk>
593569e
Subject: [PATCH] unexpand: fix blank line handling
593569e
Date: Thu, 28 Jan 2016 20:57:22 +0100
593569e
Message-Id: <1454011042-30492-1-git-send-email-lkundrak@v3.sk>
593569e
X-Mailer: git-send-email 2.5.0
593569e
X-Evolution-Source: 1409576065.5421.4@dhcp-24-163.brq.redhat.com
593569e
Content-Transfer-Encoding: 8bit
593569e
Mime-Version: 1.0
593569e
593569e
  echo '' |./src/unexpand -a
593569e

593569e
Really?
593569e
---
593569e
 src/unexpand.c | 2 +-
593569e
 1 file changed, 1 insertion(+), 1 deletion(-)
593569e

593569e
diff --git a/src/unexpand.c b/src/unexpand.c
593569e
index d6ff662..762c56b 100644
593569e
--- a/src/unexpand.c
593569e
+++ b/src/unexpand.c
593569e
@@ -304,7 +304,7 @@ unexpand (void)
593569e
                   next_tab_column = column;
593569e
                   tab_index -= !!tab_index;
593569e
                 }
593569e
-              else
593569e
+              else if (!mb_iseq (c, '\n'))
593569e
                 {
593569e
                   column += mb_width (c);
593569e
                   if (!column)
593569e
-- 
593569e
2.5.0
593569e

593569e