Query: template::plugin::wrap
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Template::Plugin::Wrap(3pm) User Contributed Perl Documentation Template::Plugin::Wrap(3pm)NAMETemplate::Plugin::Wrap - Plugin interface to Text::WrapSYNOPSIS[% USE wrap %] # call wrap subroutine [% wrap(mytext, width, initial_tab, subsequent_tab) %] # or use wrap FILTER [% mytext FILTER wrap(width, initital_tab, subsequent_tab) %]DESCRIPTIONThis plugin provides an interface to the Text::Wrap module which provides simple paragraph formatting. It defines a "wrap" subroutine which can be called, passing the input text and further optional parameters to specify the page width (default: 72), and tab characters for the first and subsequent lines (no defaults). [% USE wrap %] [% text = BLOCK %] First, attach the transmutex multiplier to the cross-wired quantum homogeniser. [% END %] [% wrap(text, 40, '* ', ' ') %] Output: * First, attach the transmutex multiplier to the cross-wired quantum homogeniser. It also registers a "wrap" filter which accepts the same three optional arguments but takes the input text directly via the filter input. Example 1: [% FILTER bullet = wrap(40, '* ', ' ') -%] First, attach the transmutex multiplier to the cross-wired quantum homogeniser. [%- END %] Output: * First, attach the transmutex multiplier to the cross-wired quantum homogeniser. Example 2: [% FILTER bullet -%] Then remodulate the shield to match the harmonic frequency, taking care to correct the phase difference. [% END %] Output: * Then remodulate the shield to match the harmonic frequency, taking care to correct the phase difference.AUTHORAndy Wardley <abw@wardley.org> <http://wardley.org/> The Text::Wrap module was written by David Muir Sharnoff with help from Tim Pierce and many others.COPYRIGHTCopyright (C) 1996-2007 Andy Wardley. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.SEE ALSOTemplate::Plugin, Text::Wrap perl v5.14.2 2011-12-20 Template::Plugin::Wrap(3pm)
Related Man Pages |
---|
text::wrap(3pm) - suse |
text::wrap(3pm) - osx |
template::manual::plugins(3pm) - debian |
template::plugin::gd(3pm) - debian |
template::plugin::wrap(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
wired pages |
usage of module Text::Wrap; |
OLS 2008 wrap-up |
Wrap Plug Test |
ICODE Tags Update: Sticking with Wrap for Now |