trailing spaces if the prefix had any. Before, the command
perl -e 'print "| S";' |fmt -p' | '|tr '\0' @ output `|@S'.
Reported by François Pinard.
if (in_column > next_prefix_indent && c != '\n' && c != EOF)
{
put_space (next_prefix_indent);
- for (s = prefix; out_column != in_column; out_column++)
+ for (s = prefix; out_column != in_column && *s; out_column++)
putchar (*s++);
+ put_space (in_column - out_column);
}
while (c != '\n' && c != EOF)
{