diff --git a/src/error.cpp b/src/error.cpp index f1d801b1..ed8844ef 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -6,11 +6,10 @@ namespace pkpy{ int index = 0; // Skip utf8 BOM if there is any. if (strncmp(source.begin(), "\xEF\xBB\xBF", 3) == 0) index += 3; - // Replace all '\r' with ' ' + // Drop all '\r' std::stringstream ss; while(index < source.length()){ - if(source[index] == '\r') ss << ' '; - else ss << source[index]; + if(source[index] != '\r') ss << source[index]; index++; }