From 51a76a718c1b4228c15d7b9862cb4cacb4fc79f3 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 27 Jul 2024 22:36:16 +0200 Subject: [PATCH] Split departure string --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 54291f5..1594812 100644 --- a/src/main.rs +++ b/src/main.rs @@ -272,7 +272,10 @@ async fn route_station_to_dest_station( } if stops_at_destination { - out.push_str(&format!("
  • {}: {} ({} {}) [{}]-> {}\n", departure_info.time, &departure.train.r#type, &departure.train.number, &departure.initialDeparture, station_properties.code, &departure.train.name, &departure.train.r#type, &departure.train.number, departure_info.platform, &departure.destination)); + out.push_str(&format!("
  • {}: ", departure_info.time)); + out.push_str(&format!("", &departure.train.r#type, &departure.train.number, &departure.initialDeparture, station_properties.code)); + out.push_str(&format!("{} ({} {})", &departure.train.name, &departure.train.r#type, &departure.train.number)); + out.push_str(&format!("[{}]-> {}\n", departure_info.platform, &departure.destination)); } }