+eval {
+ require Test::LongString;
+ Test::LongString->import(max => 128);
+
+ no warnings 'redefine'; # override module to not escape newlines
+ my $formatter = *Test::LongString::_display;
+ my $parent = \&{$formatter};
+ *{$formatter} = sub {
+ my $s = &{$parent};
+ $s =~ s/\Q\x{0a}/\n /g; # revert newline quoting
+ return $s;
+ };
+} or *is_string = \&is; # fallback to ugly unformatted is()
+