mflow: avoid adding a space after the leading quotes if there already is one

Found by lhynes.
pull/153/head
Leah Neukirchen 5 years ago
parent e9fb9ca796
commit db4c4a118c

@ -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(' ');
}

Loading…
Cancel
Save