Fix column width of unattached chains table
Tomas Doran [Mon, 20 Apr 2009 08:58:15 +0000 (08:58 +0000)]
Changes
lib/Catalyst/DispatchType/Chained.pm

diff --git a/Changes b/Changes
index 38f1d7f..a601b19 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,8 @@
 # This file documents the revision history for Perl extension Catalyst.
 
+        - Fix so that width of table of unattached actions for debugging
+          ::DispatchType::Chained varies according to your terminal width 
+          (Oleg Kostyuk)
         - Fix warning message about linearized @ISA in Catalyst::Component 
           (Emanuele Zeppieri)
         - Require MX::MethodAttributes 0.06 to avoid issues with saying
index 49fad32..23fc307 100644 (file)
@@ -86,7 +86,7 @@ sub list {
 
     my $has_unattached_actions;
     my $unattached_actions = Text::SimpleTable->new(
-        [ 35, 'Private' ], [ 36, 'Missing parent' ],
+        [ 35, 'Private' ], [ $column_width, 'Missing parent' ],
     );
 
     ENDPOINT: foreach my $endpoint (