зеркало из https://github.com/microsoft/clang-1.git
honor EscapeSpaces in 2nd overload of EscapeText()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54854 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5e8840c7a6
Коммит
63366303f6
|
@ -176,9 +176,14 @@ std::string html::EscapeText(const std::string& s, bool EscapeSpaces,
|
|||
break;
|
||||
|
||||
case '\t':
|
||||
if (ReplaceTabs)
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
os << " ";
|
||||
if (ReplaceTabs) {
|
||||
if (EscapeSpaces)
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
os << " ";
|
||||
else
|
||||
for (unsigned i = 0; i < 4; ++i)
|
||||
os << " ";
|
||||
}
|
||||
else
|
||||
os << c;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче