Re: [htmltmpl] producing plain text reports with H::T
Brought to you by:
samtregar
From: Roger B. W. <ro...@fi...> - 2003-10-15 11:58:28
|
On Wed, Oct 15, 2003 at 05:44:17PM +0530, Kenneth Gonsalves wrote: >i've been playing with H::T to produce formatted plain text reports in an >Xwindows based application. Seems to be much more flexible than using perl >Formats. So i dont go reinventing the wheel can anyone point me to some tips >and tricks to achieve things like centering, right or left justification of >fields, line and form feeds etc ? Line and form feeds will be as they literally appear in the code - make sure you're careful about where you put them relative to <tmpl_if>s. Canonical centreing is done with ' ' x (($field_width - length($text))/2) . $text i.e. in the script, not in the template. Roger |