From 1ee25e2950d1898d22ef2d6e14d8543a1cd614c2 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 3 Nov 2023 17:45:02 +0100 Subject: shorten 'walk' lines, arr/dep time and place are not relevant here --- bin/hafas | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'bin') diff --git a/bin/hafas b/bin/hafas index 3fd7738..a6f2cc0 100755 --- a/bin/hafas +++ b/bin/hafas @@ -287,19 +287,8 @@ for my $res ( @{ $hafas->{results} } ) { ); } elsif ( $sec->type eq 'WALK' ) { - printf( - "%-5s %-${have_delay}s ab %s\n", - $sec->dep_datetime->strftime('%H:%M'), - q{}, $sec->dep_loc->name - ); - printf( "%10s%${have_delay}s Fußweg %dm (%02d:%02d)\n", - q{}, q{}, $sec->distance, - $sec->duration->in_units( 'hours', 'minutes' ) ); - printf( - "%-5s %-${have_delay}s an %s\n", - $sec->arr_datetime->strftime('%H:%M'), - q{}, $sec->arr_loc->name - ); + printf( "# Walk %dm (approx. %d minutes)\n", + $sec->distance, $sec->duration->in_units('minutes') ); } else { printf("\n???\n"); -- cgit v1.2.3