Handle more edge cases with inheriting indentation