summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-06 18:49:23 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-06 18:49:23 +0100
commitdd6403668f6417f90b0c3382f3dd4a8f98bf4cd2 (patch)
tree25a9afaf9e31e40eb12d6d5db6906a57bc550c53
parent1ee25e2950d1898d22ef2d6e14d8543a1cd614c2 (diff)
hafas: move train before dep/arr
-rwxr-xr-xbin/hafas3
1 files changed, 1 insertions, 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'),