From f848419d66312abfcd32d26db138566b2359e468 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Nov 2023 19:30:31 +0300 Subject: NewStory: don't include bbcodes in quotes --- plugins/NewStory/src/history_control.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'plugins/NewStory') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 029a1ea12f..1ad5bb1f38 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -617,8 +617,11 @@ void NewstoryListData::RecalcScrollBar() void NewstoryListData::Quote() { if (pMsgDlg) - if (auto *pItem = LoadItem(caret)) - pMsgDlg->SetMessageText(Srmm_Quote(pItem->wtext)); + if (auto *pItem = LoadItem(caret)) { + CMStringW wszText(pItem->wtext); + RemoveBbcodes(wszText); + pMsgDlg->SetMessageText(Srmm_Quote(wszText)); + } } void NewstoryListData::ScheduleDraw() -- cgit v1.2.3