[Petal] Question about Petal::Mail, aka stupid P::M tricks

Bruno Postle bruno at mkdoc.com
Thu Jan 15 15:31:22 GMT 2004


On Thu 15-Jan-2004 at 09:42:59AM -0500, William McKee wrote:
> 
> While playing around with my P::M templates, I came to discover that I
> can embed my entire email inside of a <pre> tag for functionality that
> is similar to "normal" mail programs.

> This begs the question of why use any other tags inside a mail body. It
> seems it'd be easiest to just throw everything into a pre tag and use
> replaced span tags to insert data.

The inserted text is potentially variable length so this could get
ugly if you have a ready-formatted paragraph inside a <pre> tag.

If you use the <p> tag, everything will be nicely re-wrapped at 68
characters in format=flowed format.

-- 
Bruno


More information about the Petal mailing list