gnulib: fix argp --help formatting
This is a patch that was sent by Simon Reinhardt to gnulib and has never been applied. It fixes a several formatting issues in --help. https://lists.gnu.org/archive/html/bug-gnulib/2016-02/msg00013.html * lib/argp-fmtstream.c (__argp_fmtstream_update): Flush output as soon as possible. * lib/argp-fmtstream.h (struct argp_fmtstream): Member point_offs is no longer needed. * lib/argp-help.c (indent_to): Flush output to avoid a spurious newline before an overlong word.
This commit is contained in:
parent
27fb175276
commit
d0e404fec0
3 changed files with 56 additions and 157 deletions
|
|
@ -931,6 +931,9 @@ indent_to (argp_fmtstream_t stream, unsigned col)
|
|||
int needed = col - __argp_fmtstream_point (stream);
|
||||
while (needed-- > 0)
|
||||
__argp_fmtstream_putc (stream, ' ');
|
||||
/* Flush stream to avoid spurious newline before overlong word
|
||||
(see argp-test.c). */
|
||||
__argp_fmtstream_update(stream);
|
||||
}
|
||||
|
||||
/* Output to STREAM either a space, or a newline if there isn't room for at
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue