Had the same problem, the statements under the tag were not indented by default. Reformatting and auto-indentation worked after I changed the following:
Settings -> Editor -> Code Style -> HTML -> Other (tab) -> Do not indent children of: -> remove “body” from the list.
Maybe it is the same for you or something related at this section. Hope it works for you aswell.