about summary refs log tree commit diff
path: root/mflow.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2019-01-10 20:43:50 +0100
committerLeah Neukirchen <leah@vuxu.org>2019-01-10 20:43:50 +0100
commitdb4c4a118cbbbdb6beb37ced7139d3f40a18c031 (patch)
treed1ff4bb29f6b6afea146bb9ff9d583c4231c122d /mflow.c
parente9fb9ca79661a62f35b5371347220f0fe022aab9 (diff)
downloadmblaze-db4c4a118cbbbdb6beb37ced7139d3f40a18c031.tar.gz
mblaze-db4c4a118cbbbdb6beb37ced7139d3f40a18c031.tar.xz
mblaze-db4c4a118cbbbdb6beb37ced7139d3f40a18c031.zip
mflow: avoid adding a space after the leading quotes if there already is one
Found by lhynes.
Diffstat (limited to 'mflow.c')
-rw-r--r--mflow.c4
1 files changed, 2 insertions, 2 deletions
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(' ');
 		}