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:
parent
b2ddaa08d5
commit
f66c06143c
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue