[cfe-commits] r54854 - /cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
Nico Weber
nicolasweber at gmx.de
Sat Aug 16 15:24:35 PDT 2008
Author: nico
Date: Sat Aug 16 17:24:33 2008
New Revision: 54854
URL: http://llvm.org/viewvc/llvm-project?rev=54854&view=rev
Log:
honor EscapeSpaces in 2nd overload of EscapeText()
Modified:
cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
Modified: cfe/trunk/lib/Rewrite/HTMLRewrite.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/HTMLRewrite.cpp?rev=54854&r1=54853&r2=54854&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/HTMLRewrite.cpp (original)
+++ cfe/trunk/lib/Rewrite/HTMLRewrite.cpp Sat Aug 16 17:24:33 2008
@@ -176,9 +176,14 @@
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;
More information about the cfe-commits
mailing list