--indent-columns=1
--maximum-line-length=72
+==> b1356.in <==
+# S1
+%phonebook = (
+ "Bob" => "247305",
+ "Phil" => "205832",
+ "Sara" => "226010"
+);
+
+# S2
+%phonebook
+ = (
+ "Bob" => "247305",
+ "Phil" => "205832",
+ "Sara" => "226010"
+ );
+
+
+==> b1356.par <==
+--continuation-indentation=9
+--extended-line-up-parentheses
+--indent-columns=1
+--maximum-line-length=22
+--want-break-before=' = '
+
==> b140.in <==
$cmd[ $i ]=[
$s, $e, $cmd, \@hunk, $i ] ;
my $i_test = $last_equals;
# Fix for issue b1229, check for break before
+ # Fix for issue b1356, i_test must never be blank
+ # ( the ci value for blanks can vary )
if ( $want_break_before{ $types_to_go[$i_test] } ) {
- if ( $i_test > 0 ) { $i_test-- }
+ if ( $i_test > 0 && $types_to_go[ $i_test - 1 ] ne 'b' )
+ {
+ $i_test--;
+ }
}
elsif ( $types_to_go[ $i_test + 1 ] eq 'b' ) { $i_test++ }