diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-31 17:58:58 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-31 17:58:58 +0300 |
commit | 29d669dd1abca08c6fb72a1b837bc4e3665e7d33 (patch) | |
tree | 7ebe0d28a42c1d449480b0e7d9421ba6587fe777 /plugins/NewStory/src | |
parent | 3f126f88e0fce515384655bfdf382b653fc5f159 (diff) |
fixes #4312 (NewStory: empty lines after Ctrl+A -> Quote)
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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");
|