3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-29 23:39:24 +01:00

Remove space_before from JSON pretty print

This commit is contained in:
Pragmatic Software 2019-06-30 16:48:12 -07:00
parent ab435f11d4
commit f7b1551979
2 changed files with 0 additions and 2 deletions

View File

@ -95,7 +95,6 @@ sub save {
$self->{pbot}->{logger}->log("Saving $self->{name} to $filename\n"); $self->{pbot}->{logger}->log("Saving $self->{name} to $filename\n");
my $json = JSON->new; my $json = JSON->new;
$json->space_before(0);
my $json_text = $json->pretty->utf8->encode($self->{hash}); my $json_text = $json->pretty->utf8->encode($self->{hash});
open(FILE, "> $filename") or die "Couldn't open $filename: $!\n"; open(FILE, "> $filename") or die "Couldn't open $filename: $!\n";

View File

@ -95,7 +95,6 @@ sub save {
$self->{pbot}->{logger}->log("Saving $self->{name} to $filename\n"); $self->{pbot}->{logger}->log("Saving $self->{name} to $filename\n");
my $json = JSON->new; my $json = JSON->new;
$json->space_before(0);
my $json_text = $json->pretty->utf8->encode($self->{hash}); my $json_text = $json->pretty->utf8->encode($self->{hash});
open(FILE, "> $filename") or die "Couldn't open $filename: $!\n"; open(FILE, "> $filename") or die "Couldn't open $filename: $!\n";