mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
UI: Expose lists better in descriptions.
Explicitly marks several lists, which should make exposing text better.
This commit is contained in:
1 parent
7f9a68afeb
commit
3360121b5c
16 files changed
+142
-36
No files matched your search
@@ -154,6 +154,23 @@ std::string LineNumberString(const std::string &str) {
|
||||
return output.str();
|
||||
}
|
||||
|
||||
std::string IndentString(const std::string &str, const std::string &sep, bool skipFirst) {
|
||||
std::stringstream input(str);
|
||||
std::stringstream output;
|
||||
std::string line;
|
||||
|
||||
bool doIndent = !skipFirst;
|
||||
while (std::getline(input, line)) {
|
||||
if (doIndent) {
|
||||
output << sep;
|
||||
}
|
||||
doIndent = true;
|
||||
output << line << "\n";
|
||||
}
|
||||
|
||||
return output.str();
|
||||
}
|
||||
|
||||
void SkipSpace(const char **ptr) {
|
||||
while (**ptr && isspace(**ptr)) {
|
||||
(*ptr)++;
|
||||
|
||||
Reference in new issue
Block a user