From 6b7e8621e2bd3223fcd20c3ab229bce5bdf2d96b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 24 Sep 2002 08:50:24 +0000 Subject: *** empty log message *** --- ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index bc86bb7d7..afcf53b89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,16 @@ * src/Makefile.am (PERL): Remove duplicate definition. + fmt's -s, -t, -c options didn't work properly for long lines. + Since get_line may end up calling put_paragraph (for long lines), + be sure to set global, `other_indent', before it is used there. + + * src/fmt.c (set_other_indent): New function, factored out of... + (get_paragraph): ... here. Call it. + (get_line): Call set_other_indent before calling flush_paragraph, + which calls fmt_paragraph, which in turn calls put_paragraph, + which uses other_indent. + * tests/fmt/Makefile.am (TESTS): Add long-line. * tests/fmt/long-line: New file/test, for the above fix. -- cgit v1.2.3-70-g09d2