*** empty log message ***
authorJim Meyering <jim@meyering.net>
Tue, 24 Sep 2002 08:50:24 +0000 (08:50 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 24 Sep 2002 08:50:24 +0000 (08:50 +0000)
ChangeLog

index bc86bb7..afcf53b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 
        * 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.