diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-09-30 23:24:10 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-09-30 23:24:10 +0200 |
commit | 5945f06682ddb74b6c27f15221e5478e3be990a2 (patch) | |
tree | eb9be059d2d9059bf00fc7cfc2d8e5b37e64c6be | |
parent | 529ef1c349d22c89953134448ab8a6b2279aa991 (diff) |
efa-m: Proper departure time alignment for daychanges
-rw-r--r-- | Changelog | 1 | ||||
-rwxr-xr-x | bin/efa-m | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -1,6 +1,7 @@ git HEAD * Add --platform / --line options to filter output + * Align times properly if departure list contains a daychange Travel::Status::DE::VRR 0.01 - Sun Sep 11 2011 @@ -87,7 +87,10 @@ sub display_result { } printf( - join( q{ }, ( map { "%-${_}s" } @line_length ) ) . "\n", + join( q{ }, + "%${line_length[0]}s", + ( map { "%-${_}s" } @line_length[ 1, -1 ] ) ) + . "\n", @{$line}[ 0 .. 3 ] ); } |