diff options
author | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-21 12:58:29 +0200 |
---|---|---|
committer | Claudius 'keldu' Holeksa <mail@keldu.de> | 2024-08-21 12:58:29 +0200 |
commit | 6d3bd82882175e3895c18c3d941dae0949627e00 (patch) | |
tree | 21c7851a47e7fbf76c0d868248ba62251253a3e4 /modules/codec-json | |
parent | ca79183e87ba92cdfd092b5b4d8683149ebcff1b (diff) |
trying to fix pretty indents
Diffstat (limited to 'modules/codec-json')
-rw-r--r-- | modules/codec-json/c++/json.tmpl.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp index 70cc0d1..dd57fc5 100644 --- a/modules/codec-json/c++/json.tmpl.hpp +++ b/modules/codec-json/c++/json.tmpl.hpp @@ -233,7 +233,7 @@ struct json_encode<schema::Array<T,D>, FromEncode> { } { index[Level] = i; - auto eov = encode_level<Level+1>(from, to, index, depth, pretty); + auto eov = encode_level<Level+1>(from, to, index, depth+1u, pretty); if(eov.is_error()){ return eov; } @@ -251,7 +251,7 @@ struct json_encode<schema::Array<T,D>, FromEncode> { static error_or<void> encode(const data<Schema, FromEncode>& from, buffer& to, uint64_t depth, bool pretty) { std::array<std::size_t, D> index; - return encode_level<0>(from, to, index, depth, pretty); + return encode_level<0>(from, to, index, depth+1u, pretty); } }; |