Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37398944
en ru br
Репозитории ALT

Группа :: Разработка/Perl
Пакет: perl-Template-Plugin-Autoformat

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Текущая версия: 2.77-alt2
Время сборки: 28 сентября 2017, 13:36 ( 342.1 недели назад )
Размер архива: 12.07 Kb

Домашняя страница:   https://github.com/karpet/template-plugin-autofo…

Лицензия: perl
О пакете: TT plugin for Text::Autoformat
Описание:

This Template Toolkit plugin module is an interface to Damian
Conway's `Text::Autoformat' Perl module which provides advanced text wrapping
and formatting.

Configuration options may be passed to the plugin constructor via the
`USE' directive.

   [% USE autoformat(right => 30) %]

The autoformat subroutine can then be called, passing in text items which
will be wrapped and formatted according to the current configuration.

   [% autoformat('The cat sat on the mat') %]

Additional configuration items can be passed to the autoformat subroutine
and will be merged with any existing configuration specified via the
constructor.

   [% autoformat(text, left => 20) %]

Configuration options are passed directly to the `Text::Autoformat' plugin.
At the time of writing, the basic configuration items are:

   left        left margin (default: 1)
   right       right margin (default 72)
   justify     justification as one of 'left', 'right', 'full'
               or 'centre' (default: left)
   case        case conversion as one of 'lower', 'upper',
               'sentence', 'title', or 'highlight' (default: none)
   squeeze     squeeze whitespace (default: enabled)

The plugin also accepts a `form' item which can be used to define a
format string.  When a form is defined, the plugin will call the
underlying `form()' subroutine in preference to `autoformat()'.

   [% USE autoformat(form => '>>>>.<<') %]
   [% autoformat(123.45, 666, 3.14) %]

Additional configuration items relevant to forms can also be specified.

   [% USE autoformat(form => '>>>>.<<', numeric => 'AllPlaces') %]
   [% autoformat(123.45, 666, 3.14) %]

These can also be passed directly to the autoformat subroutine.

   [% USE autoformat %]
   [% autoformat( 123.45, 666, 3.14,
                  form    => '>>>>.<<',
                  numeric => 'AllPlaces' )
   %]

See the Text::Autoformat manpage for further details.

Текущий майнтейнер: Igor Vlasenko

Список всех майнтейнеров, принимавших участие
в данной и/или предыдущих сборках пакета:

Список rpm-пакетов, предоставляемый данным srpm-пакетом:

  • perl-Template-Plugin-Autoformat
ACL:
     
    дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
    текущий майнтейнер: Michael Shigorin