Use a separate function to decide whether to use indentation.