Quellcode durchsuchen

Merge topic 'vs-explicit-newline'

0bf4418017 VS: Encode newlines in XML attributes

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3065
Brad King vor 6 Jahren
Ursprung
Commit
591fab8a6a
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      Source/cmVisualStudio10TargetGenerator.cxx

+ 1 - 0
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;
 }