<?php
define("ABS_PATH", $_SERVER['DOCUMENT_ROOT']);
include(ABS_PATH . "/head_nav.php");
include(ABS_PATH . "/middle.php");
?>
          <div class="section">
            <div class="toc-wrapper">
              <span class="toc-title">Contents:</span>
              <ul class="toc">
                  <li class=""><a href="#SYNOPSIS">SYNOPSIS</a></li>
                  <li class=""><a href="#DESCRIPTION">DESCRIPTION</a></li>
                  <li class=""><a href="#AUTHOR">AUTHOR</a></li>
                  <li class=""><a href="#COPYRIGHT">COPYRIGHT</a></li>
                  <li class=""><a href="#SEE_ALSO">SEE ALSO</a></li>
              </ul>
            </div>
          </div>
          
                <div class="pod">
            <div class="section">
              <div class="head">
                <h1 id="SYNOPSIS">SYNOPSIS</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <pre><span class="tt">[% USE wrap %]</span>

# call wrap subroutine
<span class="tt">[% wrap(mytext, width, initial_tab,  subsequent_tab) %]</span>

# or use wrap FILTER
<span class="tt">[% mytext FILTER wrap(width, initital_tab, subsequent_tab) %]</span></pre>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="DESCRIPTION">DESCRIPTION</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      This plugin provides an interface to the <a href="https://metacpan.org/search?query=Text::Wrap&mode=all">Text::Wrap</a> module which provides simple
                      paragraph formatting.
                    </p>
                    <p>
                      It defines a <code>wrap</code> 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).
                    </p>
                    <pre><span class="tt">[% USE wrap %]</span>

<span class="tt">[% text = BLOCK %]</span>
First, attach the transmutex multiplier to the cross-wired 
quantum homogeniser.
<span class="tt">[% END %]</span>

<span class="tt">[% wrap(text, 40, '* ', '  ') %]</span></pre>
                    <p>
                      Output:
                    </p>
                    <pre>* First, attach the transmutex
  multiplier to the cross-wired quantum
  homogeniser.</pre>
                    <p>
                      It also registers a <code>wrap</code> filter which accepts the same three
                      optional arguments but takes the input text directly via the filter
                      input.
                    </p>
                    <p>
                      Example 1:
                    </p>
                    <pre><span class="tt">[% FILTER bullet = wrap(40, '* ', '  ') -%]</span>
First, attach the transmutex multiplier to the cross-wired quantum
homogeniser.
<span class="tt">[%- END %]</span></pre>
                    <p>
                      Output:
                    </p>
                    <pre>* First, attach the transmutex
  multiplier to the cross-wired quantum
  homogeniser.</pre>
                    <p>
                      Example 2:
                    </p>
                    <pre><span class="tt">[% FILTER bullet -%]</span>
Then remodulate the shield to match the harmonic frequency, taking 
care to correct the phase difference.
<span class="tt">[% END %]</span></pre>
                    <p>
                      Output:
                    </p>
                    <pre>* Then remodulate the shield to match
  the harmonic frequency, taking 
  care to correct the phase difference.</pre>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="AUTHOR">AUTHOR</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      Andy Wardley &lt;abw@wardley.org&gt; <a
                      href="https://wardley.org/">https://wardley.org/</a>
                    </p>
                    <p>
                      The <a href="https://metacpan.org/search?query=Text::Wrap&mode=all">Text::Wrap</a> module was
                      written by David Muir Sharnoff with help from Tim Pierce and many others.
                    </p>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="COPYRIGHT">COPYRIGHT</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved.
                    </p>
                    <p>
                      This module is free software; you can redistribute it and/or modify it
                      under the same terms as Perl itself.
                    </p>
              </div>
            </div>
            <div class="section">
              <div class="head">
                <h1 id="SEE_ALSO">SEE ALSO</h1>
                <a href="#body" class="top" title="Back up to the top of the page" >Top</a>
              </div>
              <div class="body">
                <p>
                      <a href="../../../modules/Template/Plugin.php">Template::Plugin</a>, <a
                      href="https://metacpan.org/search?query=Text::Wrap&mode=all">Text::Wrap</a>
                    </p>
              </div>
            </div>
            
            </div>
<?php include(ABS_PATH . "/footer.php"); ?>
