When substituting tabs during HTMLification, only add " " when we are

"escaping" spaces.

llvm-svn: 49404
This commit is contained in:
Ted Kremenek 2008-04-08 22:28:15 +00:00
parent d8256ed2fe
commit b1f773ca98
1 changed files with 6 additions and 1 deletions

View File

@ -42,7 +42,12 @@ void html::EscapeText(Rewriter& R, unsigned FileID, bool EscapeSpaces) {
case '\t': {
SourceLocation Loc = SourceLocation::getFileLoc(FileID, FilePos);
R.ReplaceText(Loc, 1, "    ", 6*4);
if (EscapeSpaces)
R.ReplaceText(Loc, 1, "    ", 6*4);
else
R.ReplaceText(Loc, 1, " ", 4);
break;
}