| 476 | }; |
| 477 | |
| 478 | std::string JSONPrettyPrint(const UniValue& univalue) |
| 479 | { |
| 480 | std::string ret = univalue.write(4); |
| 481 | // Workaround for libunivalue pretty printer, which puts a space between commas and newlines |
| 482 | size_t pos = 0; |
| 483 | while ((pos = ret.find(" \n", pos)) != std::string::npos) { |
| 484 | ret.replace(pos, 2, "\n"); |
| 485 | pos++; |
| 486 | } |
| 487 | return ret; |
| 488 | } |
| 489 | } // namespace |
| 490 | |
| 491 | BOOST_AUTO_TEST_CASE(script_build) |
no test coverage detected