X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=2bba938353dba0defcec99c0cbc627685ab4f58a;hp=3b51c6333a38917cde46f87b64fa0e11efcd9d22;hb=1927c219b552ac80dff59c235a51d422ac5b9d25;hpb=f5f8484715d3cd05e18db061d27705fbc905bb4c diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 3b51c63..2bba938 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -5,6 +5,7 @@ use base 'Catalyst::Base'; use UNIVERSAL::require; use Catalyst::Log; use Text::ASCIITable; +use Text::ASCIITable::Wrap 'wrap'; __PACKAGE__->mk_classdata($_) for qw/engine log/; @@ -184,9 +185,10 @@ sub import { } } } - my $t = Text::ASCIITable->new; + my $t = Text::ASCIITable->new( { hide_HeadRow => 1, hide_HeadLine => 1 } ); $t->setCols('Class'); - $t->addRow($_) for @plugins; + $t->setColWidth( 'Class', 75, 1 ); + $t->addRow( wrap( $_, 75 ) ) for @plugins; $caller->log->debug( 'Loaded plugins', $t->draw ) if ( @plugins && $caller->debug );