You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ma...@apache.org on 2002/08/13 11:23:31 UTC

cvs commit: xml-axkit/lib/Apache/AxKit/Language XSP.pm

matts       2002/08/13 02:23:30

  Modified:    lib/Apache/AxKit/Language XSP.pm
  Log:
  Close handler sub only if its been opened
  
  Revision  Changes    Path
  1.21      +5 -2      xml-axkit/lib/Apache/AxKit/Language/XSP.pm
  
  Index: XSP.pm
  ===================================================================
  RCS file: /home/cvs/xml-axkit/lib/Apache/AxKit/Language/XSP.pm,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- XSP.pm	28 Jun 2002 10:18:28 -0000	1.20
  +++ XSP.pm	13 Aug 2002 09:23:30 -0000	1.21
  @@ -369,7 +369,10 @@
           }
       }
   
  -    $e->{XSP_Script} .= "return OK;\n}\n";
  +    ## we assume that if $e->{XSP_User_Root} is true, somebody, somewhere
  +    ## (most likely the default start_element() sub) must have started the
  +    ## "sub handler {" declaration, and that we need to close it
  +    $e->{XSP_Script} .= "return OK;\n}\n" if $e->{XSP_User_Root};
   
       return $e->{XSP_Script};
   }