my $K_closing_container = $self->[_K_closing_container_];
my $rbreak_container = $self->[_rbreak_container_];
my $rshort_nested = $self->[_rshort_nested_];
+ my $ris_welded_seqno = $self->[_ris_welded_seqno_];
my $rlines = $self->[_rlines_];
# Variables needed for estimating line lengths
Fault("sequence = $type_sequence not defined at K=$KK");
}
+ # Patch: do not mark short blocks with welds.
+ # In some cases blinkers can form (case b690).
+ if ( $ris_welded_seqno->{$type_sequence} ) {
+ next;
+ }
+
# We are just looking at code blocks
my $token = $rtoken_vars->[_TOKEN_];
my $type = $rtoken_vars->[_TYPE_];
=over 4
+=item B<Fix rare problem involving interaction of -olbn=n and -wn flags>
+
+Random testing revealed a rare alternating state which could occur when both
+flags --one-line-block-nesting=n and --weld-nested-containers are set, and the
+maximum line length is set very low. The problem was fixed by ignoring the
+first flag at welded tokens. This should not have any effect on scripts with
+realistic parameter values.
+
+The following case was fixed with this update: b690.
+
+6 Feb 2021.
+
=item B<add rule to avoid welding at some barewords>
A rule was added to prevent certain rare blinking states involving welding.
The following cases were fixed with this update: b611 b626.
-6 Feb 2021.
+6 Feb 2021, 5083ab9.
=item B<further simplify -bbxi=n implementation>