Bug Report: Beautifier

ScottMattes

Member³
This one I can supply example code for. I noticed this behaviour in some code I was fixing and thought it strange.

Take the following code (it is 5 lines, in case this post get mangled)

Code:
BEGIN
IF this IN ( this, that, OR, THE, other, thing ) THEN something_happens_here; END IF;

IF substr( why_me, 1, 2 ) OR they NOT IN ( us, you ) THEN whatever; END IF;
END;
Run it through the Beautifier and I get

Code:
BEGIN
  IF this IN (this, that, OR, THE, other, thing)
  THEN
    something_happens_here;
  END IF;

  IF substr(why_me,
            1,
            2)
     OR they NOT IN (us,
                     you)
  THEN
    whatever;
  END IF;
END;
Notice how the 'in' values are on one line, but the 'not in' are on separate lines?
 
Back
Top