summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-07 14:15:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-03-07 14:15:57 (GMT)
commit591fab8a6a49d4067121059d0e5c1092eccafc5b (patch)
tree2ab13af5826d76a8230c5e0f5abcc0d071ef5f9c
parent8f05be992172e6d65bbb23426231fa253d7f15c9 (diff)
parent0bf4418017d7d6f653a8e3192a8f628a35587a04 (diff)
downloadCMake-591fab8a6a49d4067121059d0e5c1092eccafc5b.zip
CMake-591fab8a6a49d4067121059d0e5c1092eccafc5b.tar.gz
CMake-591fab8a6a49d4067121059d0e5c1092eccafc5b.tar.bz2
Merge topic 'vs-explicit-newline'
0bf4418017 VS: Encode newlines in XML attributes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3065
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index b655815..5c9f25e 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -35,6 +35,7 @@ static std::string cmVS10EscapeAttr(std::string arg)
cmSystemTools::ReplaceString(arg, "<", "&lt;");
cmSystemTools::ReplaceString(arg, ">", "&gt;");
cmSystemTools::ReplaceString(arg, "\"", "&quot;");
+ cmSystemTools::ReplaceString(arg, "\n", "&#10;");
return arg;
}