UI: Expose lists better in descriptions.

Explicitly marks several lists, which should make exposing text better.
This commit is contained in:
Unknown W. Brackets committed 2021-02-21 18:41:08 -08:00
1 parent 7f9a68afeb
commit 3360121b5c
16 files changed
+142 -36

No files matched your search

+17
View File
@@ -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)++;