From 5945f06682ddb74b6c27f15221e5478e3be990a2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 30 Sep 2011 23:24:10 +0200 Subject: efa-m: Proper departure time alignment for daychanges --- Changelog | 1 + bin/efa-m | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index ab9c42a..3db8b05 100644 --- a/Changelog +++ b/Changelog @@ -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 diff --git a/bin/efa-m b/bin/efa-m index de09aa2..2d512c6 100755 --- a/bin/efa-m +++ b/bin/efa-m @@ -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 ] ); } -- cgit v1.2.3