diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2001-11-21 13:58:42 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2001-11-21 13:58:42 +0000 |
commit | 9591301331b7d15407a60d5d74b3f7f64f179a03 (patch) | |
tree | 200b4002145ee4fbfe0c531c4db5a7f0de06f228 /handler.c | |
parent | c688a00e320c241b82982eee0deadc067330eaea (diff) |
Use $wrapmargin in the format=flowed handler, too.
Diffstat (limited to 'handler.c')
-rw-r--r-- | handler.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -989,6 +989,11 @@ static void text_plain_flowed_handler (BODY *a, STATE *s) if ((flowed_max = FLOWED_MAX) > COLS - 3) flowed_max = COLS - 3; + if (flowed_max > COLS - WrapMargin) + flowed_max = COLS - WrapMargin; + if (flowed_max <= 0) + flowed_max = COLS; + while (bytes > 0 && fgets (line, sizeof (line), s->fpin)) { |