Beautifier has trouble with Conditional IF/THEN/ELSE blocks

bcoulam

Member²
Blocks like the following aren't beautified correctly in that lines within the conditional $IF/$THEN/$ELSE control statements are unindented, instead of indented as you see below.

Code:
PROCEDURE untag_session IS
BEGIN
   $IF dbms_db_version.version = 11 AND dbms_db_version.release = 1 $THEN
      dbms_application_info.set_client_info(' '); -- bug in unpatched 11.1 won't unset client_info
   -- This conditional would be better if I could detect the existence of a patch
   $ELSE
      dbms_application_info.set_client_info(NULL);
   $END

   dbms_application_info.set_module(NULL, NULL);
END untag_session;
 
Last edited:
Statements within $IF/$THEN/$ELSE/$END blocks are indeed not indented. This is on the list of enhancement requests.
 
Back
Top