Proper line splitting in run_with_logging