From: Václav Slavík Date: Sun, 9 Nov 2003 13:59:50 +0000 (+0000) Subject: addedd support for
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/69379916942701f59b6fff72dd09eaa0a9aba89c

addedd support for 


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/samples/html/test/regres.htm b/samples/html/test/regres.htm
index 7e61edcbc8..a98d37adf2 100644
--- a/samples/html/test/regres.htm
+++ b/samples/html/test/regres.htm
@@ -6,5 +6,9 @@
 
 Unbreakable word

+

+<pre> text, 50% wide
+
+ 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();