Skip to content

Commit f45034b

Browse files
committed
try different replacement
1 parent f35cacf commit f45034b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pdal/test/Support.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ uint32_t Support::diff_text_files(std::istream& str1, std::istream& str2,
137137
std::getline(str2, buf2);
138138

139139
// Remove \r's
140-
pdal::Utils::replaceAll(buf1, "\r", "");
141-
pdal::Utils::replaceAll(buf2, "\r", "");
140+
pdal::Utils::replaceAll(buf1, "\r\n", "\n");
141+
pdal::Utils::replaceAll(buf2, "\r\n", "\n");
142+
// buf1.erase( std::remove(buf1.begin(), buf1.end(), '\r'), buf1.end() );
143+
// buf2.erase( std::remove(buf2.begin(), buf2.end(), '\r'), buf2.end() );
142144

143145
if (currLine == ignoreLine1)
144146
{

0 commit comments

Comments
 (0)