Added more tests and fixed formats to work correctly w/multiple templates.
[p5sagit/Excel-Template.git] / t / Register_018.pm
index 241b95b..b96db0e 100644 (file)
@@ -7,7 +7,7 @@ sub render
     my ($self, $context) = @_;
 
     my $old_format = $context->active_format;
-    my $format = Excel::Template::Format->copy(
+    my $format = $context->format_object->copy(
         $context, $old_format,
 
         align => 'center', bold => 1,