aboutsummaryrefslogtreecommitdiff
path: root/clang-format
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2013-02-06 12:40:01 +0000
committerManuel Klimek <klimek@google.com>2013-02-06 12:40:01 +0000
commit3025e1fb948cd49c2234795478456d8f5842eda9 (patch)
tree755cd7ef7e5fbd0df1e3a1fd223b277e3c08a82b /clang-format
parentf1a25ed6fc6d964b31f957094916c18671f694d0 (diff)
Add xml:space='preserve' in order to correctly preserve whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@174502 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-format')
-rw-r--r--clang-format/ClangFormat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-format/ClangFormat.cpp b/clang-format/ClangFormat.cpp
index d34f533c..6748bdb6 100644
--- a/clang-format/ClangFormat.cpp
+++ b/clang-format/ClangFormat.cpp
@@ -108,7 +108,7 @@ static void format() {
}
tooling::Replacements Replaces = reformat(getStyle(), Lex, Sources, Ranges);
if (OutputXML) {
- llvm::outs() << "<?xml version='1.0'?>\n<replacements>\n";
+ llvm::outs() << "<?xml version='1.0'?>\n<replacements xml:space='preserve'>\n";
for (tooling::Replacements::const_iterator I = Replaces.begin(),
E = Replaces.end();
I != E; ++I) {