[Issue #327] Fix incorrectly calculated indentation