]> git.donarmstrong.com Git - perltidy.git/commitdiff
Fix formatting instability issues b1195, b1196
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 28 Aug 2021 16:47:55 +0000 (09:47 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 28 Aug 2021 16:47:55 +0000 (09:47 -0700)
dev-bin/run_convergence_tests.pl.data
lib/Perl/Tidy/Formatter.pm
local-docs/BugLog.pod

index 1f63ba013237054590f48897b48fea8a86b1ea24..237239a4b55d1b42987092644ca0d9d2b973f8f9 100644 (file)
@@ -7184,6 +7184,26 @@ print
 --paren-vertical-tightness=2
 --weld-nested-containers
 
+==> b1196.in <==
+# S1
+ok(
+        $strX eq
+                 NFC( join( '', @strX ) )
+);
+# S2
+ok(
+        $strX eq NFC( join( '',
+                @strX ) )
+);
+
+==> b1196.par <==
+--continuation-indentation=9
+--extended-continuation-indentation
+--ignore-old-breakpoints
+--indent-columns=8
+--maximum-line-length=42
+--weld-nested-containers
+
 ==> b120.in <==
 # Same as bug96
 # State 1
index 7628237af57ab37396f9c77eceaaad0a91eb8668..d924e9bd57f9207cb82facf9020418369e7218fa 100644 (file)
@@ -7542,11 +7542,6 @@ sub setup_new_weld_measurements {
     my $Kprev = $self->K_previous_nonblank($Kfirst);
     if ( defined($Kprev) ) {
 
-        # The -iob and -wn flags do not work well together. To avoid
-        # blinking states we have to override -iob at certain key line
-        # breaks.
-        $self->[_ris_essential_old_breakpoint_]->{$Kprev} = 1;
-
         # Avoid measuring from between an opening paren and a previous token
         # which should stay close to it ... fixes b1185
         my $token_oo  = $rLL->[$Kouter_opening]->[_TOKEN_];
index 9abfecad08ac1be7fb8fcfef707c9d10147f90f9..1acb6c0bf4fb214df835115fc1bf3167cf1aada7 100644 (file)
@@ -2,6 +2,13 @@
 
 =over 4
 
+=item B<Fix formatting instability issues b1195, b1196>
+
+Testing with random parameters produced two similar cases of unstable
+formatting which are fixed with this update.
+
+28 Aug 2021.
+
 =item B<Fix formatting instability issue b1194>
 
 Testing with random parameters produced a case of unstable formatting