From 69379916942701f59b6fff72dd09eaa0a9aba89c Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 9 Nov 2003 13:59:50 +0000 Subject: [PATCH] addedd support for

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 samples/html/test/regres.htm | 4 ++++
 src/html/m_pre.cpp           | 3 +++
 2 files changed, 7 insertions(+)

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(); -- 2.45.2