BSD Ports

textproc/par 1.53.0_2 DragonFly

Paragraph reformatter for email

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
textproc
Package size
26.4 KiB, 39.5 KiB installed

Description

Par is similar but superior to the fmt(1) command included in the base system.

Par is a filter that copies its input to its output, changing all white characters (except newlines) to spaces, and reformatting each paragraph. Paragraphs are separated by protected, blank, and bodiless lines (see the Terminology section for definitions), and optionally delimited by indentation (see the d option in the Options section).

Each output paragraph is generated from the corresponding input paragraph as follows:

  1. An optional prefix and/or suffix is removed from each input line.
  2. The remainder is divided into words (separated by spaces).
  3. The words are joined into lines to make an eye-pleasing paragraph.
  4. The prefixes and suffixes are reattached.

If there are suffixes, spaces are inserted before them so that they all end in the same column.

In the other systems

SystemPortVersion
DragonFlytextproc/par1.53.0_2
FreeBSDtextproc/par1.53.0_3
OpenBSDtextproc/par1.52p4
NetBSDtextproc/par1.53.0

Install

Binary package:

pkg install par_format

From DPorts:

cd /usr/dports/textproc/par && make install clean

Dependencies

No port depends on this one.