]> git.ipfire.org Git - thirdparty/coreutils.git/commit
fmt's -s, -t, -c options didn't work properly for long lines.
authorJim Meyering <jim@meyering.net>
Tue, 24 Sep 2002 08:50:20 +0000 (08:50 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 24 Sep 2002 08:50:20 +0000 (08:50 +0000)
commitcc0a6e14fc608e6b503136bbb8a668c14a35566f
tree4867a5786e2f973cfd14bb5614d7c4f3767e80ee
parent8683024a34c12dacff9b9f58bc1f0ef552a60ae4
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.

(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.
src/fmt.c