Manager: remove excess blank lines in notices

Notices may have e.g.
   foo
   <br />
   blah
The manager replaces the newlines with <br>, resulting in three blank lines.
Change this to one.
TODO: the fix is a kludge.
This commit is contained in:
David Anderson 2017-08-14 14:51:34 -07:00
parent 1c6fddb4e8
commit 8b40609a74
1 changed files with 4 additions and 2 deletions

View File

@ -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("<BR>"));
strMessage.Replace(wxT("\n"), wxT("<BR>"));
strMessage.Replace(wxT("\r\n"), wxT("<br>"));
strMessage.Replace(wxT("\n"), wxT("<br>"));
strMessage.Replace(wxT("<br />"), wxT("<br>"));
strMessage.Replace(wxT("<br><br>"), wxT("<br>"));
}
// Remove CRLFs and LFs