Python Equivalent to Text::Autoformat
Dan Sommers
me at privacy.net
Sun Dec 4 09:49:56 EST 2005
On 4 Dec 2005 05:58:08 -0800,
"BartlebyScrivener" <rpdooling at gmail.com> wrote:
>>> try searching on text wrapping<<
> I tried that before I posted. Text::Autoformat does a lot more than
> textwrap.
> "The fundamental task of the autoformat subroutine is to identify and
> rearrange independent paragraphs in a text. Paragraphs typically
> consist of a series of lines containing at least one non-whitespace
> character, followed by one or more lines containing only optional
> whitespace. This is a more liberal definition than many other
> formatters use: most require an empty line to terminate a paragraph.
> Paragraphs may also be denoted by bulleting, numbering, or quoting . .
> ."
Try the formatter module:
http://www.python.org/doc/current/lib/module-formatter.html
Regards,
Dan
--
Dan Sommers
<http://www.tombstonezero.net/dan/>
More information about the Python-list
mailing list