mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-04 10:26:16 -04:00
Trim trailing newlines off OSReport (#1127)
This commit is contained in:
committed by
GitHub
parent
80af15c95b
commit
45196886b0
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user