diff options
author | Alexey Efimov <xeno@prnwatch.com> | 2022-02-10 16:49:42 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:42 +0300 |
commit | 0fd1998e1b2369f50fb694556f817d3c7fef10c8 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/monlib/service/pages/templates.h | |
parent | 26e0e4fb5e5cd6b4d7f4c21f9fcd7978891bf946 (diff) | |
download | ydb-0fd1998e1b2369f50fb694556f817d3c7fef10c8.tar.gz |
Restoring authorship annotation for Alexey Efimov <xeno@prnwatch.com>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/monlib/service/pages/templates.h')
-rw-r--r-- | library/cpp/monlib/service/pages/templates.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/monlib/service/pages/templates.h b/library/cpp/monlib/service/pages/templates.h index 6a48a9229e..b4656f059f 100644 --- a/library/cpp/monlib/service/pages/templates.h +++ b/library/cpp/monlib/service/pages/templates.h @@ -123,32 +123,32 @@ namespace NMonitoring { { Str << "<" << tag; - if (!cls.empty()) { + if (!cls.empty()) { Str << " class=\"" << cls << "\""; } - if (!for0.empty()) { + if (!for0.empty()) { Str << " for=\"" << for0 << "\""; } - if (!id.empty()) { + if (!id.empty()) { Str << "id=\"" << id << "\""; } Str << ">"; } TTag(IOutputStream& str, std::initializer_list<std::pair<TStringBuf, TStringBuf>> attributes) - : Str(str) - { - Str << "<" << tag; - for (const std::pair<TStringBuf, TStringBuf>& attr : attributes) { - if (!attr.second.empty()) { - Str << ' ' << attr.first << "=\"" << attr.second << "\""; - } - } - Str << ">"; - } - + : Str(str) + { + Str << "<" << tag; + for (const std::pair<TStringBuf, TStringBuf>& attr : attributes) { + if (!attr.second.empty()) { + Str << ' ' << attr.first << "=\"" << attr.second << "\""; + } + } + Str << ">"; + } + ~TTag() { try { Str << "</" << tag << ">"; |