Trim trailing newlines off OSReport (#1127)

This commit is contained in:
Pieter-Jan Briers
2026-05-13 03:16:49 +02:00
committed by GitHub
parent 80af15c95b
commit 45196886b0
+5
View File
@@ -53,6 +53,11 @@ static std::string FormatToString(const char* msg, va_list list) {
size *= 2;
}
}
while (!str.empty() && str[str.size()-1] == '\n') {
str.pop_back();
}
return str;
}