From f708ecc035a88cdcc8a61cf8d9719bd4d5dfe33d Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Tue, 12 Sep 2023 17:31:11 -0700 Subject: [PATCH] strip trailing whitespace from card text --- src/Main.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Main.cc b/src/Main.cc index fcef54f5..b66aaf1c 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -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()); } }