We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f714a commit f26a188Copy full SHA for f26a188
lib/JSON/PP.pm
@@ -450,7 +450,7 @@ sub allow_bigint {
450
$self->_down_indent() if ($self->{PROPS}[P_INDENT]);
451
452
return '[]' unless @res;
453
- my $space = $self->{PROPS}[P_SPACE_AFTER] ? ' ' : '';
+ my $space = $pre eq '' && $self->{PROPS}[P_SPACE_AFTER] ? ' ' : '';
454
return '[' . $pre . join( ",$space$pre", @res ) . $post . ']';
455
}
456
0 commit comments