File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -13063,6 +13063,9 @@ sub Perlito5::Perl6::PrettyPrinter::call {
13063
13063
push(@{$out}, '.');
13064
13064
my $d = $dd[0];
13065
13065
render($d, $level, $out);
13066
+ if ($open eq '(' && @dd == 1) {
13067
+ return()
13068
+ }
13066
13069
$dd[0] = 'list:<,>';
13067
13070
push(@{$out}, $open);
13068
13071
op(['op' => @dd], $level, $out);
@@ -13075,6 +13078,9 @@ sub Perlito5::Perl6::PrettyPrinter::apply {
13075
13078
my $open = shift(@dd);
13076
13079
my $d = $dd[0];
13077
13080
render($d, $level, $out);
13081
+ if ($open eq '(' && @dd == 1) {
13082
+ return()
13083
+ }
13078
13084
$dd[0] = 'list:<,>';
13079
13085
push(@{$out}, $open);
13080
13086
op(['op' => @dd], $level, $out);
Original file line number Diff line number Diff line change @@ -276,6 +276,10 @@ sub call {
276
276
push @$out , ' .' ;
277
277
my $d = $dd [0];
278
278
render( $d , $level , $out );
279
+ if ($open eq ' (' && @dd == 1) {
280
+ # done if it is an empty list
281
+ return ;
282
+ }
279
283
$dd [0] = ' list:<,>' ;
280
284
push @$out , $open ;
281
285
op( [ op => @dd ], $level , $out );
@@ -289,6 +293,10 @@ sub apply {
289
293
my $open = shift @dd ;
290
294
my $d = $dd [0];
291
295
render( $d , $level , $out );
296
+ if ($open eq ' (' && @dd == 1) {
297
+ # done if it is an empty list
298
+ return ;
299
+ }
292
300
$dd [0] = ' list:<,>' ;
293
301
push @$out , $open ;
294
302
op( [ op => @dd ], $level , $out );
You can’t perform that action at this time.
0 commit comments