From 8b40609a7455b595bc8b20efe1b838ebac9c313f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 14 Aug 2017 14:51:34 -0700 Subject: [PATCH] Manager: remove excess blank lines in notices Notices may have e.g. foo
blah The manager replaces the newlines with
, resulting in three blank lines. Change this to one. TODO: the fix is a kludge. --- clientgui/MainDocument.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/clientgui/MainDocument.cpp b/clientgui/MainDocument.cpp index 056fed96eb..53afcd203a 100644 --- a/clientgui/MainDocument.cpp +++ b/clientgui/MainDocument.cpp @@ -2024,8 +2024,10 @@ int CMainDocument::ResetNoticeState() { // Replace CRLFs and LFs with HTML breaks. // void eol_to_br(wxString& strMessage) { - strMessage.Replace(wxT("\r\n"), wxT("
")); - strMessage.Replace(wxT("\n"), wxT("
")); + strMessage.Replace(wxT("\r\n"), wxT("
")); + strMessage.Replace(wxT("\n"), wxT("
")); + strMessage.Replace(wxT("
"), wxT("
")); + strMessage.Replace(wxT("

"), wxT("
")); } // Remove CRLFs and LFs