Fix empty tag indent problem
Add maxDepth treatment