[Bps-public-commit] r16943 - in Path-Dispatcher/trunk: lib/Path/Dispatcher

sartak at bestpractical.com sartak at bestpractical.com
Wed Nov 19 17:22:09 EST 2008


Author: sartak
Date: Wed Nov 19 17:22:09 2008
New Revision: 16943

Modified:
   Path-Dispatcher/trunk/   (props changed)
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Declarative.pm

Log:
 r75841 at onn:  sartak | 2008-11-19 17:22:03 -0500
 Slightly better rule name formatting (parent - rule file:line)


Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Declarative.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Declarative.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Declarative.pm	Wed Nov 19 17:22:09 2008
@@ -200,14 +200,14 @@
             $UNDER_RULE->add_rule($rule);
 
             my $full_name = $UNDER_RULE->has_name
-                          ? $UNDER_RULE->name . " (rule $rule_name)"
-                          : "anonymous Under (rule $rule_name)";
+                          ? "(" . $UNDER_RULE->name . " - rule $rule_name)"
+                          : "(anonymous Under - rule $rule_name)";
 
             $rule->name($full_name);
         }
         else {
             $self->dispatcher->add_rule($rule);
-            $rule->name($self->dispatcher->name . " (rule $rule_name)");
+            $rule->name("(" . $self->dispatcher->name . " - rule $rule_name)");
         }
     }
     else {



More information about the Bps-public-commit mailing list