reformat - tool to simple format plain ascii texts
reformat [-h] [-j] [-l margin]
[-p] [-w width]
reformat is a simple tool to reformat plain texts. reformat
reads from stdin and writes to stdout.
Available options are:
- -h
- prints usage information
- -j
- switch justify mode: Each line of a paragraph will have the same width
(see -w option). To reach this, spaces (' ') will be added between
words. Default: disabled
- -l
left-margin
- Sets the left margin to left-margin. The margin is produced by
left-margin spaces (' '), no tabs will be used. Default: 0
- -p
- Accept lines beginning with a whitespace as usual paragraphs, too.
- -w width
- Sets the paragraph width to width. No reformatted line will be
longer than width (plus defined margins) then. Default: 72
Planned features are:
- Fix some problems, see "LIMITATIONS".
- Add an option to declare a string that indicates "don't
reformat" in the text. Would be nice on reformatting emails, and
don't touch the quoteas ('> '-lines).
- Add an option (e.g. -i) to keep indenting.
(C) Stephan Beyer <s-beyer@gmx.net>, 2003-2004, GPL