addedd support for <pre width=...>

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2003-11-09 13:59:50 +00:00
parent 4d312c222e
commit 6937991694
2 changed files with 7 additions and 0 deletions

View File

@@ -6,5 +6,9 @@
<font size="+2">Unbre</font>akable word<P>
<pre width="50%">
&lt;pre&gt; text, 50% wide
</pre>
</body>
</html>

View File

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