MGR: Make the HTML page we inject notices into a valid HTML page

This commit is contained in:
Rom Walton 2014-05-06 00:02:35 -04:00
parent cfffccac35
commit b8a7d0e9d3
1 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ bool CNoticeListCtrl::Create( wxWindow* parent ) {
SetSizer(topsizer);
m_itemCount = 0;
m_noticesBody = wxT("<html><body></body>");
m_noticesBody = wxT("<html><head></head><body></body></html>");
// Display the fetching notices message until we have notices
// to display or have determined that there are no notices.
@ -133,7 +133,7 @@ void CNoticeListCtrl::SetItemCount(int newCount) {
wxASSERT(wxDynamicCast(pSkinAdvanced, CSkinAdvanced));
m_itemCount = newCount;
m_noticesBody = wxT("<html><font face=helvetica>");
m_noticesBody = wxT("<html><head></head><body><font face=helvetica>");
for (i=0; i<newCount; ++i) {
if (pDoc->IsConnected()) {
@ -228,7 +228,7 @@ void CNoticeListCtrl::SetItemCount(int newCount) {
}
m_noticesBody += strBuffer;
}
m_noticesBody += wxT("</font></html>");
m_noticesBody += wxT("</font></body></html>");
m_browser->SetPage(m_noticesBody, wxT("http://"));
}