aboutsummaryrefslogtreecommitdiffstats
path: root/util/charset/wide.cpp
diff options
context:
space:
mode:
authoralexeykruglov <alexeykruglov@yandex-team.ru>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commitf64e95a9eb9ab03240599eb9581c5a9102426a96 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/charset/wide.cpp
parent06361c53c4ca58f57007ea73fc399fc25664f13c (diff)
downloadydb-f64e95a9eb9ab03240599eb9581c5a9102426a96.tar.gz
Restoring authorship annotation for <alexeykruglov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/charset/wide.cpp')
-rw-r--r--util/charset/wide.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/charset/wide.cpp b/util/charset/wide.cpp
index 49f49f5110..a287438ddd 100644
--- a/util/charset/wide.cpp
+++ b/util/charset/wide.cpp
@@ -580,7 +580,7 @@ void EscapeHtmlChars(TUtf16String& str) {
const TUtf16String& cs = str;
for (size_t i = 0; i < cs.size(); ++i)
- escapedLen += EscapedLen<insertBr>(cs[i]);
+ escapedLen += EscapedLen<insertBr>(cs[i]);
if (escapedLen == cs.size())
return;
@@ -606,11 +606,11 @@ void EscapeHtmlChars(TUtf16String& str) {
ent = &quot;
break;
default:
- if (insertBr && (cs[i] == '\r' || cs[i] == '\n')) {
- ent = &br;
- break;
- } else
- continue;
+ if (insertBr && (cs[i] == '\r' || cs[i] == '\n')) {
+ ent = &br;
+ break;
+ } else
+ continue;
}
res.append(cs.begin() + start, cs.begin() + i);