From dd6403668f6417f90b0c3382f3dd4a8f98bf4cd2 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 6 Nov 2023 18:49:23 +0100 Subject: hafas: move train before dep/arr --- bin/hafas | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/hafas b/bin/hafas index a6f2cc0..2ad37e2 100755 --- a/bin/hafas +++ b/bin/hafas @@ -271,14 +271,13 @@ for my $res ( @{ $hafas->{results} } ) { for my $sec ( $res->sections ) { if ( $sec->type eq 'JNY' ) { + printf( "%s → %s\n", $sec->name, $sec->direction ); printf( "%-5s %-${have_delay}s ab %s\n", $sec->dep_datetime->strftime('%H:%M'), format_delay( $sec->dep_delay ), $sec->dep_loc->name ); - printf( "%10s%${have_delay}s %s → %s\n", - q{}, q{}, $sec->name, $sec->direction ); printf( "%-5s %-${have_delay}s an %s\n", $sec->arr_datetime->strftime('%H:%M'), -- cgit v1.2.3