summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-09-20 18:43:57 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-09-20 18:43:57 +0200
commit2f6ab37acefe264eaf95c30764ce3ca9a882122d (patch)
tree12c6782664dda01b65376a9cb8b6799c31c35bfe /bin/efa-m
parent986d398f5cd6e62bb4501dea6775a9cd61b9bd28 (diff)
partially restore prev_route / next_route
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 7eb9211..f4211a3 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -198,6 +198,13 @@ sub format_route {
$stop->name, $stop->platform,
);
}
+ elsif ( $stop->name ) {
+ $output .= sprintf( " %40s %s\n",
+ $stop->name, $stop->platform, );
+ }
+ else {
+ $output .= "?\n";
+ }
}
return $output;
}
@@ -322,7 +329,10 @@ sub show_results {
}
my $line = $d->line;
- if ( (length($line) > 10 or not $line) and $d->train_type and $d->train_no ) {
+ if ( ( length($line) > 10 or not $line )
+ and $d->train_type
+ and $d->train_no )
+ {
$line = $d->train_type . ' ' . $d->train_no;
}