Skip to content

Commit

Permalink
mflow: avoid adding a space after the leading quotes if there already…
Browse files Browse the repository at this point in the history
… is one

Found by lhynes.
  • Loading branch information
leahneukirchen committed Jan 10, 2019
1 parent e9fb9ca commit db4c4a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mflow.c
Expand Up @@ -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(' ');
}

Expand All @@ -60,7 +60,7 @@ flowed(int quotes, char *line, ssize_t linelen)
for (; column < quotes; column++)
putchar('>');
column++;
if (quotes)
if (quotes && *line != ' ')
putchar(' ');
}

Expand Down

0 comments on commit db4c4a1

Please sign in to comment.