Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Alastair Watts
|
Mar 6, 2012 - 6:08 AM
|
I’m having a few problems when using white-space: nowrap
If I type the following into RichContentFeatures.exe the text TWO isn’t displayed. I’m a complete novice with HTML but it works OK in a browser!
<html>
<p style="white-space: nowrap">
ONE<b>TWO</b>THREE
</p>
</html>
|
|
Technical Support
|
Mar 8, 2012 - 6:25 AM
|
Thank you for reporting this issue. To fix it, please update the source code for the following method:
void CExtRichContentItem::ComputeLinearListForParagraph(
CTypedPtrList < CPtrList, CExtRichContentItem * > & _listItems
, bool bParentIsParagraph // = false
)
{
if( m_eType == __EHIT_TEXT_RANGE
|| m_eType == __EHIT_TEXT_SPACE
|| ( bParentIsParagraph
&& ( IsParagraphItem()
|| QueryGenericTagName() == _T("img")
|| GetDisplay() == CExtRichStyleDescription::ed_table
|| GetDisplay() == CExtRichStyleDescription::ed_inline_table
|| GetDisplay() == CExtRichStyleDescription::ed_inline_block
)
)
)
_listItems.AddTail( this );
if( bParentIsParagraph )
return;
POSITION pos = m_listItems.GetHeadPosition();
for( ; pos != NULL; )
{
CExtRichContentItem * pRCI = m_listItems.GetNext( pos );
__EXT_DEBUG_RICH_CONTENT_ASSERT( pRCI != NULL );
if( pRCI->m_eType == __EHIT_GENERIC_TAG )
{
CExtRichStyleDescription::e_position_t eP = pRCI->GetPosition();
if( eP != CExtRichStyleDescription::ep_static && eP != CExtRichStyleDescription::ep_relative )
continue;
}
if( pRCI->GetDisplay() == CExtRichStyleDescription::ed_none
|| pRCI->GetDisplay() == CExtRichStyleDescription::ed_ui_dock
)
continue;
bool bParent =
( pRCI->IsParagraphItem()
|| pRCI->QueryGenericTagName() == _T("img")
|| pRCI->GetDisplay() == CExtRichStyleDescription::ed_table
|| pRCI->GetDisplay() == CExtRichStyleDescription::ed_inline_table
|| pRCI->GetDisplay() == CExtRichStyleDescription::ed_inline_block
|| pRCI->GetDisplay() == CExtRichStyleDescription::ed_inline_block
);
pRCI->ComputeLinearListForParagraph( _listItems, bParent );
} // for( ; pos != NULL; )
}
|
|