| 97 | } |
| 98 | |
| 99 | void PrettyPrinter::CloseArray(const Array& array) { |
| 100 | if (array.length() > 0) { |
| 101 | indent_ -= options_.indent_size; |
| 102 | if (!options_.skip_new_lines) { |
| 103 | Indent(); |
| 104 | } |
| 105 | } |
| 106 | (*sink_) << options_.array_delimiters.close; |
| 107 | } |
| 108 | |
| 109 | void PrettyPrinter::Write(std::string_view data) { |
| 110 | Write(data, options_.element_size_limit); |