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