]> git.donarmstrong.com Git - perltidy.git/commitdiff
fix excessive recombine iterations, issue c171
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 7 Jan 2023 00:33:39 +0000 (16:33 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 7 Jan 2023 00:33:39 +0000 (16:33 -0800)
lib/Perl/Tidy/Formatter.pm

index f0b1a2680ea45705b845f48b32980ef489f928cd..9e98880c0dc7bf13101cf1288376b58e4108115e 100644 (file)
@@ -17914,8 +17914,8 @@ sub break_equals {
         # are produced which would look better if they were combined.
         # That's the task of this routine.
 
-        # do nothing under extreme stress
-        return if ( $high_stress_level < 1 );
+        # do nothing under extreme stress; use <= 2 for c171
+        return if ( $high_stress_level <= 2 );
 
         my $nmax_start = @{$ri_end} - 1;
         return if ( $nmax_start <= 0 );