Insert word-wrapped text blocks

Notice: This plugin is unmaintained and available for adoption.


This plugin is a Wiki Processor to wrap a <pre></pre> text block 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.

example of macro usage

Please see the following example:

The email processor is invoked by wrapping the #!email-processor around the body content of the email in your wiki page:

 <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:

 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.


5 / 5


3 / 3


Download the zipped source from here.


Check out EmailProcessorMacro from here using Subversion, or browse the source with Trac.


This macro needs to be installed in the global plugin directory, or in the Trac environment's plugins directory:

  • Copy into the environment's plugins directory.
  • Add the following to the environment's trac.ini file:
    emailprocessor.emailmacro = enabled
  • Restart your web server.

Recent Changes

16970 by rjollos on 2017-11-18 09:53:09
Add metadata to macro
10962 by rjollos on 2011-12-01 09:35:55
Refs #6394: Replaced source URL with trac-hacks URL.
10961 by rjollos on 2011-12-01 09:31:37
Refs #6394: Follow-on to [7365]. Added svn:keywords.


Author: pacopablo
Maintainer: none (needsadoption)

Last modified 3 years ago Last modified on Sep 23, 2019, 4:55:47 PM

Attachments (1)

Download all attachments as: .zip