From 1ad2bf5cb2375b8ff82444746853b6f0499ccb43 Mon Sep 17 00:00:00 2001 From: Christopher Hall Date: Fri, 10 Dec 2010 13:34:21 +1300 Subject: [PATCH] make sure to close that file --- installer/html-template-to-template-toolkit.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer/html-template-to-template-toolkit.pl b/installer/html-template-to-template-toolkit.pl index d2903a7f9e..a128678bb8 100755 --- a/installer/html-template-to-template-toolkit.pl +++ b/installer/html-template-to-template-toolkit.pl @@ -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; } -- 2.39.5