[Jifty-commit] r7537 - Template-Declare/branches/mixmaster/lib/Template/Declare

Jifty commits jifty-commit at lists.jifty.org
Sat Oct 10 07:34:05 EDT 2009


Author: ruz
Date: Sat Oct 10 07:34:05 2009
New Revision: 7537

Modified:
   Template-Declare/branches/mixmaster/lib/Template/Declare/Tags.pm

Log:
no point in calling append if content is empty

Modified: Template-Declare/branches/mixmaster/lib/Template/Declare/Tags.pm
==============================================================================
--- Template-Declare/branches/mixmaster/lib/Template/Declare/Tags.pm	(original)
+++ Template-Declare/branches/mixmaster/lib/Template/Declare/Tags.pm	Sat Oct 10 07:34:05 2009
@@ -715,7 +715,7 @@
     }
     my $content = Template::Declare->buffer->pop;
     $content .= "$last" if not length $content and length $last;
-    Template::Declare->buffer->append($attrs);
+    Template::Declare->buffer->append($attrs) if length $attrs;
 
     if (length $content) {
         Template::Declare->buffer->append(">$content");


More information about the Jifty-commit mailing list