}
}
else {
- $msg = "NEW EXPECT";
+ $msg = "..NEW";
push @expect_cases_to_update, $sname;
$rexpect_files->{$sname} = $output;
}
EOM
}
if (@expect_cases_to_update) {
+ my $new_expect = @expect_cases_to_update;
print <<EOM;
-NEW: the .expect data will be updated with output for these cases
-@expect_cases_to_update
+NEW: added $new_expect cases to .expect: @expect_cases_to_update
EOM
}
if (@expect_differences) {
--ignore-old-breakpoints
--want-trailing-commas='i'
+==> b1444.in <==
+ while ( my ( $k, $v )
+ = each %{ $self->{channels}->{$chk}->{device_cache}
+ } )
+ {
+ ...;
+ }
+
+ while ( my ( $k, $v )
+ = each %{$self->{channels}->{$chk}->{device_cache} }
+ )
+ {
+ ...;
+ }
+
+
+==> b1444.par <==
+--brace-vertical-tightness-closing=1
+--break-before-all-operators
+--continuation-indentation=7
+--extended-continuation-indentation
+--extended-line-up-parentheses
+--indent-columns=9
+--maximum-line-length=79
+--space-keyword-paren
+--vertical-tightness=1
+
==> b146.in <==
# State 1
if ( $minimum_depth <= $current_depth ) {
if ( $i_opening >= 0 ) {
- $self->set_forced_breakpoint($i_opening)
- unless ( $do_not_break_apart
- || is_unbreakable_container($current_depth) );
+ if ( !$do_not_break_apart
+ && !is_unbreakable_container($current_depth) )
+ {
+ $self->set_forced_breakpoint($i_opening);
+
+ # Do not let brace types L/R use vertical tightness
+ # flags to recombine if we have to break on length
+ # because instability is possible if both vt and vtc
+ # flags are set ... see issue b1444.
+ if ( $is_long_term
+ && $types_to_go[$i_opening] eq 'L'
+ && $opening_vertical_tightness{'{'}
+ && $closing_vertical_tightness{'}'} )
+ {
+ my $seqno = $type_sequence_to_go[$i_opening];
+ if ($seqno) {
+ $self->[_rbreak_container_]->{$seqno} = 1;
+ }
+ }
+ }
}
# break at ',' of lower depth level before opening token