class Cucumber::Formatter::Pretty

def print_step_data?(event, exception_to_be_printed)

def print_step_data?(event, exception_to_be_printed)
  !event.test_step.hook? && (
    print_background_steps ||
    event.test_step.location.lines.max >= current_test_case.location.lines.max ||
    exception_to_be_printed
  )
end