Add indentation information when saving and restoring state.