diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-09-20 18:43:57 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-09-20 18:43:57 +0200 |
commit | 2f6ab37acefe264eaf95c30764ce3ca9a882122d (patch) | |
tree | 12c6782664dda01b65376a9cb8b6799c31c35bfe /bin/efa-m | |
parent | 986d398f5cd6e62bb4501dea6775a9cd61b9bd28 (diff) |
partially restore prev_route / next_route
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-x | bin/efa-m | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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; } |