Add support for style="page-break-inside:avoid" to wxHTML
Allow using this style to prevent page breaks inside the given <div>.
This commit is contained in:
@@ -187,6 +187,12 @@ TAG_HANDLER_BEGIN(DIV, "DIV")
|
||||
m_WParser->OpenContainer();
|
||||
return false;
|
||||
}
|
||||
else if(style.IsSameAs(wxT("PAGE-BREAK-INSIDE:AVOID"), false))
|
||||
{
|
||||
m_WParser->CloseContainer();
|
||||
m_WParser->OpenContainer()->SetCanLiveOnPagebreak(false);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Treat other STYLE parameters here when they're supported.
|
||||
|
Reference in New Issue
Block a user