X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04dbb6467be8f564f380bd9a1106fbdecbd26a98..dbcbe229628c7667da2b6257198467d4f09ab28d:/src/html/m_dflist.cpp diff --git a/src/html/m_dflist.cpp b/src/html/m_dflist.cpp index b6ec386043..634a31786b 100644 --- a/src/html/m_dflist.cpp +++ b/src/html/m_dflist.cpp @@ -63,24 +63,19 @@ TAG_HANDLER_BEGIN(DEFLIST, "DL,DT,DD") } else if (tag.GetName() == wxT("DT")) { - if (!tag.IsEnding()) - { - m_WParser->CloseContainer(); - c = m_WParser->OpenContainer(); - c->SetAlignHor(wxHTML_ALIGN_LEFT); - c->SetMinHeight(m_WParser->GetCharHeight()); - } + m_WParser->CloseContainer(); + c = m_WParser->OpenContainer(); + c->SetAlignHor(wxHTML_ALIGN_LEFT); + c->SetMinHeight(m_WParser->GetCharHeight()); return FALSE; } - else if (!tag.IsEnding()) // "DD" + else // "DD" { m_WParser->CloseContainer(); c = m_WParser->OpenContainer(); c->SetIndent(5 * m_WParser->GetCharWidth(), wxHTML_INDENT_LEFT); return FALSE; } - - else return FALSE; } TAG_HANDLER_END(DEFLIST)