From 0e530dc3f55c5c7ed1cbb3e7d72af208922b7f03 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 14 Jun 2020 20:28:29 +0200 Subject: hafas-m: fix message display for non-repeated messages --- bin/hafas-m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/hafas-m b/bin/hafas-m index 7b2491b..c40f0ab 100755 --- a/bin/hafas-m +++ b/bin/hafas-m @@ -154,7 +154,10 @@ sub display_result { print "\n"; $first_message = 0; } - printf( "# %s\n", $msg ); + printf( "# %s\n", $msg->{header} ); + if ( $msg->{lead} ) { + printf( "# %s\n", $msg->{lead} ); + } } } -- cgit v1.2.3