[interchange-cvs] interchange - racke modified lib/Vend/Table/Editor.pm
interchange-core@icdevgroup.org
interchange-core@icdevgroup.org
Wed Jan 15 09:34:00 2003
User: racke
Date: 2003-01-15 14:32:48 GMT
Modified: lib/Vend/Table Editor.pm
Log:
treat blank templates as if they are empty, so
[table-editor ...]
[/table-editor]
exhibits the same behaviour as
[table-editor][/table-editor]
Revision Changes Path
1.23 +3 -3 interchange/lib/Vend/Table/Editor.pm
rev 1.23, prev_rev 1.22
Index: Editor.pm
===================================================================
RCS file: /anon_cvs/repository/interchange/lib/Vend/Table/Editor.pm,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- Editor.pm 14 Jan 2003 02:25:53 -0000 1.22
+++ Editor.pm 15 Jan 2003 14:32:48 -0000 1.23
@@ -1,6 +1,6 @@
# Vend::Table::Editor - Swiss-army-knife table editor for Interchange
#
-# $Id: Editor.pm,v 1.22 2003/01/14 02:25:53 mheins Exp $
+# $Id: Editor.pm,v 1.23 2003/01/15 14:32:48 racke Exp $
#
# Copyright (C) 2002 ICDEVGROUP <interchange@icdevgroup.org>
# Copyright (C) 2002 Mike Heins <mike@perusion.net>
@@ -26,7 +26,7 @@
package Vend::Table::Editor;
use vars qw($VERSION);
-$VERSION = substr(q$Revision: 1.22 $, 10);
+$VERSION = substr(q$Revision: 1.23 $, 10);
use Vend::Util;
use Vend::Interpolate;
@@ -3612,7 +3612,7 @@
show_times("end table editor call item_id=$key") if $Global::ShowTimes;
my @put;
- if($overall_template) {
+ if($overall_template =~ /\S/) {
my $death = sub {
my $item = shift;
logDebug("must have chunk {$item} defined in overall template.");