summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-09-30 23:24:10 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-09-30 23:24:10 +0200
commit5945f06682ddb74b6c27f15221e5478e3be990a2 (patch)
treeeb9be059d2d9059bf00fc7cfc2d8e5b37e64c6be
parent529ef1c349d22c89953134448ab8a6b2279aa991 (diff)
efa-m: Proper departure time alignment for daychanges
-rw-r--r--Changelog1
-rwxr-xr-xbin/efa-m5
2 files changed, 5 insertions, 1 deletions
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 ]
);
}