Re: [Maypole] text formatting

From: Simon Cozens (simon at simon-cozens.org)
Date: Fri Oct 29 2004 - 16:33:54 BST


Dave Howorth:
> I have a question about text formatting in Maypole. If the value of a
> field in the database is text in which the spaces and especially line
> breaks are significant, how is it handled by Maypole?

It isn't handled. That's a templating issue. Maypole doesn't really care what
you display, whether it's HTML, plain text, or whatever. That's not part of
its remit.

> Have I missed something in my configuration that would make this work,
> or is there additional functionality needed?

No, you just need to change your templates from, say,
    [% beer.description %]
to
    [% beer.description | html_line_break %]

You are using your own custom templates, aren't you?

-- 
What would happen if you ran up to Hitler and mentioned Usenet?
	- Kibo

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT