mirror of https://github.com/BOINC/boinc.git
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:
parent
1c6fddb4e8
commit
8b40609a74
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue