strip trailing whitespace from card text

This commit is contained in:
Martin Michelsen
2023-09-12 17:31:11 -07:00
parent fb52047e7c
commit f708ecc035
+1
View File
@@ -1542,6 +1542,7 @@ int main(int argc, char** argv) {
} else {
string tags = entry->debug_tags.empty() ? "(none)" : join(entry->debug_tags, ", ");
string text = entry->text.empty() ? "(No text available)" : str_replace_all(entry->text, "\n", "\n ");
strip_trailing_whitespace(text);
fprintf(stdout, "%s\n Tags: %s\n Text:\n %s\n\n", s.c_str(), tags.c_str(), text.c_str());
}
}