mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +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() {
|
void leave() {
|
||||||
jb_->dec_offset();
|
jb_->dec_offset();
|
||||||
if (jb_->is_pretty()) {
|
if (jb_->is_pretty()) {
|
||||||
*sb_ << "\n";
|
|
||||||
jb_->print_offset();
|
jb_->print_offset();
|
||||||
}
|
}
|
||||||
*sb_ << "]";
|
*sb_ << "]";
|
||||||
|
@ -385,7 +384,6 @@ class JsonArrayScope : public JsonScope {
|
||||||
is_first_ = true;
|
is_first_ = true;
|
||||||
}
|
}
|
||||||
if (jb_->is_pretty()) {
|
if (jb_->is_pretty()) {
|
||||||
*sb_ << "\n";
|
|
||||||
jb_->print_offset();
|
jb_->print_offset();
|
||||||
}
|
}
|
||||||
return jb_->enter_value();
|
return jb_->enter_value();
|
||||||
|
@ -410,7 +408,6 @@ class JsonObjectScope : public JsonScope {
|
||||||
void leave() {
|
void leave() {
|
||||||
jb_->dec_offset();
|
jb_->dec_offset();
|
||||||
if (jb_->is_pretty()) {
|
if (jb_->is_pretty()) {
|
||||||
*sb_ << "\n";
|
|
||||||
jb_->print_offset();
|
jb_->print_offset();
|
||||||
}
|
}
|
||||||
*sb_ << "}";
|
*sb_ << "}";
|
||||||
|
@ -424,7 +421,6 @@ class JsonObjectScope : public JsonScope {
|
||||||
is_first_ = true;
|
is_first_ = true;
|
||||||
}
|
}
|
||||||
if (jb_->is_pretty()) {
|
if (jb_->is_pretty()) {
|
||||||
*sb_ << "\n";
|
|
||||||
jb_->print_offset();
|
jb_->print_offset();
|
||||||
}
|
}
|
||||||
jb_->enter_value() << key;
|
jb_->enter_value() << key;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue