diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-10-29 21:40:51 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-10-29 21:40:51 +0100 |
commit | 1493bd9d125af79d464bcf6130a855726cde8cc1 (patch) | |
tree | 06ee6d81a3b79e49c0a09aa0f097a894d6b4a647 /bin | |
parent | 33dcf576a463ffacdec28fbb2484ec2e1e27b402 (diff) |
-of: show delimiter between route_pre and route_post
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/aseag-m | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bin/aseag-m b/bin/aseag-m index 0051403..80eb50f 100755 --- a/bin/aseag-m +++ b/bin/aseag-m @@ -179,13 +179,17 @@ sub show_results { my ( @line, @route ); if ( $edata{route_full} ) { - @route = ( $d->route_pre, $d->route_post ); + @route = ( + show_route( $dt_now, $dt_format, $d->route_pre ), + [ ' - - - -', q{}, q{}, q{} ], + show_route( $dt_now, $dt_format, $d->route_post ) + ); } elsif ( $edata{route_after} ) { - @route = $d->route_post; + @route = show_route( $dt_now, $dt_format, $d->route_post ); } elsif ( $edata{route_before} ) { - @route = $d->route_pre; + @route = show_route( $dt_now, $dt_format, $d->route_pre ); } if ( $edata{relative_times} ) { @@ -196,14 +200,13 @@ sub show_results { $d->line, q{}, $d->destination, - [ show_route( $dt_now, $dt_format, @route ) ], + \@route, ); } else { @line = ( $d->datetime->strftime($strftime_format), - $d->line, q{}, $d->destination, - [ show_route( $dt_now, $dt_format, @route ) ], + $d->line, q{}, $d->destination, \@route, ); } |