diff options
author | jimmy <jimmy@yandex-team.ru> | 2022-02-10 16:49:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:38 +0300 |
commit | affdafdb1fc09bf0bfc384355143ee6db9e90046 (patch) | |
tree | da80bda4720043db2e41dfd1c7fd04de32021fd3 /library/cpp/json/writer | |
parent | 4e4faf8d95a4916a49f6674f3ff50e13799fbaa6 (diff) | |
download | ydb-affdafdb1fc09bf0bfc384355143ee6db9e90046.tar.gz |
Restoring authorship annotation for <jimmy@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/writer')
-rw-r--r-- | library/cpp/json/writer/json.cpp | 4 | ||||
-rw-r--r-- | library/cpp/json/writer/json.h | 2 | ||||
-rw-r--r-- | library/cpp/json/writer/json_ut.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/json/writer/json.cpp b/library/cpp/json/writer/json.cpp index 02370c2d79..268722fe66 100644 --- a/library/cpp/json/writer/json.cpp +++ b/library/cpp/json/writer/json.cpp @@ -136,12 +136,12 @@ namespace NJsonWriter { NeedComma = false; NeedNewline = false; } - + inline void TBuf::EndValue() { if (StackTop() == JE_PAIR) { StackPop(); } - } + } TValueContext TBuf::BeginList() { NeedNewline = true; diff --git a/library/cpp/json/writer/json.h b/library/cpp/json/writer/json.h index 0aae2531b9..e6693feb68 100644 --- a/library/cpp/json/writer/json.h +++ b/library/cpp/json/writer/json.h @@ -152,7 +152,7 @@ namespace NJsonWriter { TVector<EJsonEntity> Stack; bool NeedComma; - bool NeedNewline; + bool NeedNewline; const EHtmlEscapeMode EscapeMode; int IndentSpaces; bool WriteNanAsString; diff --git a/library/cpp/json/writer/json_ut.cpp b/library/cpp/json/writer/json_ut.cpp index 9980555683..0c706e9305 100644 --- a/library/cpp/json/writer/json_ut.cpp +++ b/library/cpp/json/writer/json_ut.cpp @@ -118,8 +118,8 @@ Y_UNIT_TEST_SUITE(JsonWriter) { " 1,\n" " \"hello\",\n" " {\n" - " \"abc\":3,\n" - " \"def\":4\n" + " \"abc\":3,\n" + " \"def\":4\n" " }\n" "]"; UNIT_ASSERT_STRINGS_EQUAL(exp, w.Str()); |