diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-06 18:49:23 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-11-06 18:49:23 +0100 |
commit | dd6403668f6417f90b0c3382f3dd4a8f98bf4cd2 (patch) | |
tree | 25a9afaf9e31e40eb12d6d5db6906a57bc550c53 | |
parent | 1ee25e2950d1898d22ef2d6e14d8543a1cd614c2 (diff) |
hafas: move train before dep/arr
-rwxr-xr-x | bin/hafas | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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'), |