From b7a6d768230edd4e85e08596955308cd4a39722e Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 21 Aug 2024 13:01:20 +0200 Subject: trying to fix pretty indents --- modules/codec-json/c++/json.tmpl.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp index dd57fc5..8663d5a 100644 --- a/modules/codec-json/c++/json.tmpl.hpp +++ b/modules/codec-json/c++/json.tmpl.hpp @@ -239,6 +239,12 @@ struct json_encode, FromEncode> { } } } + if(pretty){ + auto eov = json_helper::print_pretty_indent(to, depth); + if(eov.is_error()){ + return eov; + } + } { auto err = to.push(']'); if(!err.template is_type()){ -- cgit v1.2.3