forked from OSchip/llvm-project
When substituting tabs during HTMLification, only add " " when we are
"escaping" spaces. llvm-svn: 49404
This commit is contained in:
parent
d8256ed2fe
commit
b1f773ca98
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue