From 96b0f7217a74f62c7d911d7dd58054d7d1954dbd Mon Sep 17 00:00:00 2001 From: Lisette Scheer Date: Fri, 6 Mar 2026 18:05:08 +0000 Subject: [PATCH] Bug 20956: (QA follow-up) Restore info pretty I restored the pretty code for the info file because the page needs to be able to wrap, like it does for other logs. Signed-off-by: David Nind Signed-off-by: Lisette Scheer --- tools/viewlog.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/viewlog.pl b/tools/viewlog.pl index 2ea2feb3592..d3de818f5a7 100755 --- a/tools/viewlog.pl +++ b/tools/viewlog.pl @@ -234,6 +234,17 @@ if ($do_it) { } } } + if ( $result->{module} eq 'MEMBERS' ) { + my $json_engine = JSON->new->utf8->canonical(1)->pretty(1); + if ( $result->{info} && $result->{info} =~ /^[{\[]/ ) { + my $perl_info = $json_engine->decode( $result->{info} ); + $result->{info} = $json_engine->encode($perl_info); + } + if ( $result->{diff} && $result->{diff} =~ /^[{\[]/ ) { + my $perl_diff = $json_engine->decode( $result->{diff} ); + $result->{diff} = $json_engine->encode($perl_diff); + } + } push @data, $result; } if ( $output eq "screen" ) { -- 2.39.5