X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/999836aacade840a5d9a0cbb5fad7b1d4de62c93..3a7c125370cf6fd2b66eb06ba031efcfd5c5b9b0:/src/html/m_pre.cpp?ds=sidebyside diff --git a/src/html/m_pre.cpp b/src/html/m_pre.cpp index 76090c9398..2594df910c 100644 --- a/src/html/m_pre.cpp +++ b/src/html/m_pre.cpp @@ -94,6 +94,8 @@ TAG_HANDLER_BEGIN(PRE, "PRE") m_WParser->CloseContainer(); c = m_WParser->OpenContainer(); + c->SetWidthFloat(tag); + c = m_WParser->OpenContainer(); c->SetAlignHor(wxHTML_ALIGN_LEFT); c->SetIndent(m_WParser->GetCharHeight(), wxHTML_INDENT_TOP); @@ -106,6 +108,7 @@ TAG_HANDLER_BEGIN(PRE, "PRE") m_Parser->DoParsing(); m_Parser->RestoreState(); + m_WParser->CloseContainer(); m_WParser->CloseContainer(); c = m_WParser->OpenContainer();