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:
@@ -6,5 +6,9 @@
|
||||
|
||||
<font size="+2">Unbre</font>akable word<P>
|
||||
|
||||
<pre width="50%">
|
||||
<pre> text, 50% wide
|
||||
</pre>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user