Code
create or replace view testview as
select a,b,c,d
  from   table1,table2
  where  table1.a = table2.d
  and    b < c
  order by a;

If you run beautifier on the above code you get the error mentioned by Todd_emo.
If you select the code from 'select' until the end of the code then beautifier does his magic without complaints. In the above case (and my custom settings) it becomes (omitting the create line):

Code
SELECT a
      ,b
      ,c
      ,d
  FROM table1
      ,table2
 WHERE table1.a = table2.d
   AND b < c
 ORDER BY a;


Regards,
Wim