make sure to close that file
authorChristopher Hall <chris.hall@catalyst.net.nz>
Fri, 10 Dec 2010 00:34:21 +0000 (13:34 +1300)
committerChristopher Hall <chris.hall@catalyst.net.nz>
Fri, 10 Dec 2010 00:34:21 +0000 (13:34 +1300)
installer/html-template-to-template-toolkit.pl

index d2903a7..a128678 100755 (executable)
@@ -160,12 +160,13 @@ foreach my $file (@template_files) {
        $input_tmpl =~ s/\w*\.__even__/loop.even/ig;
        $input_tmpl =~ s/\w*\.__counter__/loop.count/ig; #loop.count gives the range (0..max) whereas loop.index gives the range (1..max+1), __counter__ is unknown
 
-       #hack to get around lack of javascript filter
+       # hack to get around lack of javascript filter
        $input_tmpl =~ s/\|JS/|replace("'", "\\'") |replace('"', '\\"') |replace('\\n', '\\\\n') |replace('\\r', '\\\\r')/ig;
     
        # Write out..
        print $OTT $input_tmpl;
     }
+    close $ITMPL
     close $OTT;
 }