X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/04dbb6467be8f564f380bd9a1106fbdecbd26a98..243dbf1a5088be31980df51b97831b52cb6986cd:/src/html/m_dflist.cpp diff --git a/src/html/m_dflist.cpp b/src/html/m_dflist.cpp index b6ec386043..e113412e7a 100644 --- a/src/html/m_dflist.cpp +++ b/src/html/m_dflist.cpp @@ -17,7 +17,7 @@ #include "wx/defs.h" #if wxUSE_HTML && wxUSE_STREAMS -#ifdef __BORDLANDC__ +#ifdef __BORLANDC__ #pragma hdrstop #endif @@ -34,7 +34,7 @@ FORCE_LINK_ME(m_dflist) -TAG_HANDLER_BEGIN(DEFLIST, "DL,DT,DD") +TAG_HANDLER_BEGIN(DEFLIST, "DL,DT,DD" ) TAG_HANDLER_PROC(tag) { @@ -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)