my $iline_oo = $outer_opening->[_LINE_INDEX_];
my $iline_io = $inner_opening->[_LINE_INDEX_];
+ my $iline_ic = $inner_closing->[_LINE_INDEX_];
# Set flag saying if this pair starts a new weld
my $starting_new_weld = !( @welds && $outer_seqno == $welds[-1]->[0] );
# would become a blinker without this rule:
# $Self->_Add( $SortOrderDisplay{ $Field
# ->GenerateFieldForSelectSQL() } );
+ # But it is okay to weld a two-line statement if it looks like
+ # it was already welded, meaning that the two opening containers are
+ # on a different line that the two closing containers. This is
+ # necessary to prevent blinking of something like this with
+ # perltidy -wn -pbp (starting indentation two levels deep):
+
+ # $top_label->set_text( gettext(
+ # "Unable to create personal directory - check permissions.") );
my $iline_oc = $outer_closing->[_LINE_INDEX_];
my $token_oo = $outer_opening->[_TOKEN_];
- if ( $iline_oc <= $iline_oo + 1 && $token_oo eq '(') {
+ if ( $iline_oc <= $iline_oo + 1
+ && $iline_io == $iline_ic
+ && $token_oo eq '(' )
+ {
# Look for following semicolon...
my $Knext_nonblank = $self->K_next_nonblank($Kouter_closing);
}
}
- my $iline_ic = $inner_closing->[_LINE_INDEX_];
-
# DO-NOT-WELD RULE 2:
# Do not weld an opening paren to an inner one line brace block
# We will just use old line numbers for this test and require
{ $die_on_fetch, 0 }
};
- # fixed RULE 2 applies to any inner opening token
+ # fixed RULE 2 applies to any inner opening token; this is a stable
+ # state with -wn
$app->FORM->{'appbar1'}->set_status(
_("Cannot delete zone $name: sub-zones or appellations exist.")
);
+ # fixed RULE 1: this is now a stable state with -wn
$app->FORM->{'appbar1'}->set_status(
_("Cannot delete zone $name: sub-zones or appellations exist.")
);
my $res = eval { { $die_on_fetch, 0 } };
- # fixed RULE 2 applies to any inner opening token
+ # fixed RULE 2 applies to any inner opening token; this is a stable
+ # state with -wn
$app->FORM->{'appbar1'}->set_status(
_("Cannot delete zone $name: sub-zones or appellations exist.")
);
- $app->FORM->{'appbar1'}->set_status(
- _("Cannot delete zone $name: sub-zones or appellations exist.")
- );
+ # fixed RULE 1: this is now a stable state with -wn
+ $app->FORM->{'appbar1'}->set_status( _(
+ "Cannot delete zone $name: sub-zones or appellations exist.") );
../snippets17.t wn8.wn
../snippets17.t pbp6.def
../snippets17.t pbp6.pbp
+../snippets17.t bos.bos
+../snippets17.t bos.def
../snippets2.t angle.def
../snippets2.t arrows1.def
../snippets2.t arrows2.def
../snippets9.t rt98902.def
../snippets9.t rt98902.rt98902
../snippets9.t rt99961.def
-../snippets17.t bos.bos
-../snippets17.t bos.def
{ $die_on_fetch, 0 }
};
- # fixed RULE 2 applies to any inner opening token
+ # fixed RULE 2 applies to any inner opening token; this is a stable
+ # state with -wn
$app->FORM->{'appbar1'}->set_status(
_("Cannot delete zone $name: sub-zones or appellations exist.")
);
+ # fixed RULE 1: this is now a stable state with -wn
$app->FORM->{'appbar1'}->set_status(_(
"Cannot delete zone $name: sub-zones or appellations exist."));
{ $die_on_fetch, 0 }
};
- # fixed RULE 2 applies to any inner opening token
+ # fixed RULE 2 applies to any inner opening token; this is a stable
+ # state with -wn
$app->FORM->{'appbar1'}->set_status(
_("Cannot delete zone $name: sub-zones or appellations exist.")
);
+ # fixed RULE 1: this is now a stable state with -wn
$app->FORM->{'appbar1'}->set_status(_(
"Cannot delete zone $name: sub-zones or appellations exist."));
----------
{ $die_on_fetch, 0 }
};
- # fixed RULE 2 applies to any inner opening token
+ # fixed RULE 2 applies to any inner opening token; this is a stable
+ # state with -wn
$app->FORM->{'appbar1'}->set_status(
_("Cannot delete zone $name: sub-zones or appellations exist.")
);
+ # fixed RULE 1: this is now a stable state with -wn
$app->FORM->{'appbar1'}->set_status(
_("Cannot delete zone $name: sub-zones or appellations exist.")
);
my $res = eval { { $die_on_fetch, 0 } };
- # fixed RULE 2 applies to any inner opening token
+ # fixed RULE 2 applies to any inner opening token; this is a stable
+ # state with -wn
$app->FORM->{'appbar1'}->set_status(
_("Cannot delete zone $name: sub-zones or appellations exist.")
);
- $app->FORM->{'appbar1'}->set_status(
- _("Cannot delete zone $name: sub-zones or appellations exist.")
- );
+ # fixed RULE 1: this is now a stable state with -wn
+ $app->FORM->{'appbar1'}->set_status( _(
+ "Cannot delete zone $name: sub-zones or appellations exist.") );
#9...........
},