Browse Source

BUG: When writing newlines between script portions in prebuild, prelink, and postbuild command lines they must be escaped for XML so that the IDE receives them. This fixes the fix for bug #3977.

Brad King 19 years ago
parent
commit
b9f3de8491
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/cmLocalVisualStudio7Generator.cxx

+ 3 - 3
Source/cmLocalVisualStudio7Generator.cxx

@@ -1440,7 +1440,7 @@ void cmLocalVisualStudio7Generator
       }
     else
       {
-      fout << "\n";
+      fout << this->EscapeForXML("\n");
       }
     std::string script =
       this->ConstructScript(cr->GetCommandLines(),
@@ -1469,7 +1469,7 @@ void cmLocalVisualStudio7Generator
       }
     else
       {
-      fout << "\n";
+      fout << this->EscapeForXML("\n");
       }
     std::string script =
       this->ConstructScript(cr->GetCommandLines(),
@@ -1498,7 +1498,7 @@ void cmLocalVisualStudio7Generator
       }
     else
       {
-      fout << "\n";
+      fout << this->EscapeForXML("\n");
       }
     std::string script =
       this->ConstructScript(cr->GetCommandLines(),