summaryrefslogtreecommitdiff
path: root/bin/hafas
diff options
context:
space:
mode:
Diffstat (limited to 'bin/hafas')
-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'),