Contents
Wrap text blocks to specified width
Notice: This plugin is unmaintained and available for adoption.
Description
This plugin is a wiki processor to wrap text to a specified number of columns, 72 by default. This is especially useful for pasting emails and getting blocks of text that don't scroll horizontally.
In the following example, the text is constrained to within a 72-character wide text block:
The email processor is invoked by wrapping the #!email
-processor around the body content of the email in your wiki page:
{{{#!email <email stuff here> }}}
To wrap to a specified length, the line immediately following the invocation should contain cols:
followed by the number of columns at wich we wrap. For example:
{{{#!email cols: 40 <email stuff here> }}}
It is important that the cols:
starts at the beginning of the line and that only a number follows it.
The EmailProcessorMacro is installed on Trac-Hacks, so you can test it out. Please do so only by previewing, not by submitting tickets.
Bugs/Feature Requests
Existing bugs and feature requests for EmailProcessorMacro are here. If you have any issues, create a new ticket.
defect |
5 / 5 |
|
---|---|---|
enhancement |
3 / 3 |
Download
Download the zipped source from here.
Source
Check out EmailProcessorMacro from here using Subversion, or browse the source with Trac.
Installation
This macro
needs to be installed in the global plugin directory, or in the Trac environment's plugins
directory:
- Copy
emailprocessor.py
into the environment'splugins
directory. - Add the following to the environment's
trac.ini
file:[components] emailprocessor.emailmacro = enabled
- Restart your web server.
Recent Changes
Author/Contributors
Author: pacopablo
Maintainer: none (needsadoption)
Contributors:
Attachments (1)
-
email_formatter_example.png (13.6 KB) - added by 17 years ago.
example of macro usage
Download all attachments as: .zip