diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /library/cpp/messagebus/www/html_output.h | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/messagebus/www/html_output.h')
-rw-r--r-- | library/cpp/messagebus/www/html_output.h | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/library/cpp/messagebus/www/html_output.h b/library/cpp/messagebus/www/html_output.h index 50c3f1fa15..27e77adefa 100644 --- a/library/cpp/messagebus/www/html_output.h +++ b/library/cpp/messagebus/www/html_output.h @@ -32,26 +32,26 @@ struct TChars { TString Text; bool NeedEscape; - TChars(TStringBuf text) - : Text(text) - , NeedEscape(true) - { - } - TChars(TStringBuf text, bool escape) - : Text(text) - , NeedEscape(escape) - { - } - TChars(const char* text) - : Text(text) - , NeedEscape(true) - { - } - TChars(const char* text, bool escape) - : Text(text) - , NeedEscape(escape) - { - } + TChars(TStringBuf text) + : Text(text) + , NeedEscape(true) + { + } + TChars(TStringBuf text, bool escape) + : Text(text) + , NeedEscape(escape) + { + } + TChars(const char* text) + : Text(text) + , NeedEscape(true) + { + } + TChars(const char* text, bool escape) + : Text(text) + , NeedEscape(escape) + { + } TString Escape() { if (NeedEscape) { @@ -67,13 +67,13 @@ struct TAttr { TString Value; TAttr(TStringBuf name, TStringBuf value) - : Name(name) - , Value(value) - { - } + : Name(name) + , Value(value) + { + } - TAttr() { - } + TAttr() { + } bool operator!() const { return !Name; @@ -239,9 +239,9 @@ static inline void BootstrapInfo(TStringBuf text) { static inline void ScriptHref(TStringBuf href) { Open("script", - TAttr("language", "javascript"), - TAttr("type", "text/javascript"), - TAttr("src", href)); + TAttr("language", "javascript"), + TAttr("type", "text/javascript"), + TAttr("src", href)); Close("script"); Nl(); } @@ -290,17 +290,17 @@ struct TTagGuard { struct TDivGuard: public TTagGuard { TDivGuard(TStringBuf cssClass, TStringBuf id = "") : TTagGuard("div", cssClass, id) - { - } + { + } TDivGuard(TAttr a1 = TAttr(), TAttr a2 = TAttr(), TAttr a3 = TAttr()) : TTagGuard("div", a1, a2, a3) - { - } + { + } }; struct TAGuard { - TAGuard(TStringBuf href) { + TAGuard(TStringBuf href) { OpenA(href); } @@ -318,7 +318,7 @@ struct TScriptFunctionGuard { Line("$(function() {"); } - ~TScriptFunctionGuard() { + ~TScriptFunctionGuard() { Line("});"); } }; |