summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-11-11 09:37:57 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2023-11-11 09:37:57 +0100
commit2f36742e18003fc7a95254d5591e15fcda9b5d99 (patch)
treedf6b690de9868a53a0b9d09276bdf10530b3d9a2
parent3469d68df35ce0b6ad8ff74539d6d57d6fc55029 (diff)
hafas: Adjust walking format to be like train connections
-rwxr-xr-xbin/hafas3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/hafas b/bin/hafas
index 7b810fe..87f228d 100755
--- a/bin/hafas
+++ b/bin/hafas
@@ -337,7 +337,8 @@ for my $res ( @{ $hafas->{results} } ) {
);
}
elsif ( $sec->type eq 'WALK' ) {
- printf( "# Walk %dm (approx. %d minutes)\n",
+ printf(
+ "${output_bold}Walk %dm${output_reset} (approx. %d minutes)\n",
$sec->distance, $sec->duration->in_units('minutes') );
}
else {