1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-14 12:12:21 +00:00

Fix pretty print json (remove unnecessary line breaks) (#515)

* add: TON Overflow

* Fix pretty print json (remove unnecessary line breaks)
This commit is contained in:
Andrey Pfau 2022-11-02 21:28:44 +03:00 committed by GitHub
parent b2ddaa08d5
commit f66c06143c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -363,7 +363,6 @@ class JsonArrayScope : public JsonScope {
void leave() {
jb_->dec_offset();
if (jb_->is_pretty()) {
*sb_ << "\n";
jb_->print_offset();
}
*sb_ << "]";
@ -385,7 +384,6 @@ class JsonArrayScope : public JsonScope {
is_first_ = true;
}
if (jb_->is_pretty()) {
*sb_ << "\n";
jb_->print_offset();
}
return jb_->enter_value();
@ -410,7 +408,6 @@ class JsonObjectScope : public JsonScope {
void leave() {
jb_->dec_offset();
if (jb_->is_pretty()) {
*sb_ << "\n";
jb_->print_offset();
}
*sb_ << "}";
@ -424,7 +421,6 @@ class JsonObjectScope : public JsonScope {
is_first_ = true;
}
if (jb_->is_pretty()) {
*sb_ << "\n";
jb_->print_offset();
}
jb_->enter_value() << key;