save-restore formatter_state