[Rt-commit] rt branch, 4.0/custom-scrip-tailing-newline, created. rt-4.0.8-162-ga302974

Alex Vandiver alexmv at bestpractical.com
Tue Nov 13 16:36:23 EST 2012


The branch, 4.0/custom-scrip-tailing-newline has been created
        at  a302974b0fc22ae458d7932d3aea6af5826cdce9 (commit)

- Log -----------------------------------------------------------------
commit a302974b0fc22ae458d7932d3aea6af5826cdce9
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Nov 13 16:34:37 2012 -0500

    Ensure that the closing } during compile checking is on its own line
    
    Some syntaxes in Perl extend to the end of the line -- such as comments,
    <<HEREDOC terminators, etc.  As such, the } which closes the
    code-checking block must reside on its own line.

diff --git a/lib/RT/Scrip.pm b/lib/RT/Scrip.pm
index 6a04ca5..d118b38 100644
--- a/lib/RT/Scrip.pm
+++ b/lib/RT/Scrip.pm
@@ -629,7 +629,7 @@ sub CompileCheck {
 
         do {
             no strict 'vars';
-            eval "sub { $code }";
+            eval "sub { $code \n }";
         };
         next if !$@;
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list