From db4c4a118cbbbdb6beb37ced7139d3f40a18c031 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 10 Jan 2019 20:43:50 +0100 Subject: mflow: avoid adding a space after the leading quotes if there already is one Found by lhynes. --- mflow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mflow.c') diff --git a/mflow.c b/mflow.c index d7f8370..41db508 100644 --- a/mflow.c +++ b/mflow.c @@ -40,7 +40,7 @@ fixed(int quotes, char *line, size_t linelen) if (column == 0) { for (; column < quotes; column++) putchar('>'); - if (quotes) + if (quotes && *line != ' ') putchar(' '); } @@ -60,7 +60,7 @@ flowed(int quotes, char *line, ssize_t linelen) for (; column < quotes; column++) putchar('>'); column++; - if (quotes) + if (quotes && *line != ' ') putchar(' '); } -- cgit 1.4.1