BUG: On Windows, remove extra CR characters. Hopefully this will result in not duplicated new-lines
This commit is contained in:
parent
d4f1785473
commit
9594c888ab
|
@ -155,7 +155,11 @@ std::string cmCTest::MakeXMLSafe(const std::string& str)
|
|||
for (std::string::size_type pos = 0; pos < str.size(); pos ++ )
|
||||
{
|
||||
unsigned char ch = str[pos];
|
||||
if ( (ch > 126 || ch < 32) && ch != 9 && ch != 10 && ch != 13 )
|
||||
if ( ch == '\r' )
|
||||
{
|
||||
// Ignore extra CR characters.
|
||||
}
|
||||
else if ( (ch > 126 || ch < 32) && ch != 9 && ch != 10 && ch != 13 )
|
||||
{
|
||||
char buffer[33];
|
||||
sprintf(buffer, "<%d>", (int)ch);
|
||||
|
|
Loading…
Reference in New Issue