Whitespace tweaks (newlines)
Consistency: empty line before each prompt, but not after.
This commit is contained in:
parent
32e84f3725
commit
464a6db78c
2 changed files with 3 additions and 3 deletions
|
@ -29,7 +29,7 @@ sub hook_cart_changed {
|
||||||
|
|
||||||
my $sum = $cart->sum;
|
my $sum = $cart->sum;
|
||||||
my $what = $sum > 0 ? "add %.2f" : "pay %.2f";
|
my $what = $sum > 0 ? "add %.2f" : "pay %.2f";
|
||||||
say sprintf "Enter username to $what; type 'abort' to abort.\n", abs $sum;
|
say sprintf "Enter username to $what; type 'abort' to abort.", abs $sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
sub hook_abort {
|
sub hook_abort {
|
||||||
|
|
4
revbank
4
revbank
|
@ -125,12 +125,12 @@ RevBank::Plugins->load;
|
||||||
call_hooks("startup");
|
call_hooks("startup");
|
||||||
|
|
||||||
OUTER: for (;;) {
|
OUTER: for (;;) {
|
||||||
print "\n" if not @words;
|
|
||||||
|
|
||||||
if (not @words) {
|
if (not @words) {
|
||||||
call_hooks("cart_changed", $cart) if $cart->changed;
|
call_hooks("cart_changed", $cart) if $cart->changed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print "\n" if not @words;
|
||||||
|
|
||||||
my $split_input = 1;
|
my $split_input = 1;
|
||||||
my $prompt = "";
|
my $prompt = "";
|
||||||
my @plugins = RevBank::Plugins->new;
|
my @plugins = RevBank::Plugins->new;
|
||||||
|
|
Loading…
Add table
Reference in a new issue