From 29d669dd1abca08c6fb72a1b837bc4e3665e7d33 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 31 Mar 2024 17:58:58 +0300 Subject: fixes #4312 (NewStory: empty lines after Ctrl+A -> Quote) --- plugins/NewStory/src/history_control.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/NewStory/src') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 5ebf7b6f2f..669e5f40f3 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -536,6 +536,9 @@ CMStringW NewstoryListData::GatherSelected(bool bTextOnly) continue; CMStringW wszText(bTextOnly ? p->wtext : p->formatString()); + if (wszText.IsEmpty()) + continue; + RemoveBbcodes(wszText); ret.Append(wszText); ret.Append(L"\r\n"); -- cgit v1.2.3