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 ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users