From 2f6ab37acefe264eaf95c30764ce3ca9a882122d Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 20 Sep 2024 18:43:57 +0200 Subject: partially restore prev_route / next_route --- bin/efa-m | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'bin') 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; } -- cgit v1.2.3