Simply testing IActiveTest.IsEmpty is no longer sufficient for checking if an active text object has any true content.
For example active text that comprises only of a pair of matched ekDocument elements has no content but IsEmpty returns false for this document.
It is suggested that a new method, IActiveText.HasContent is provided that checks of the active text truly has content. Implementations should scan the active text for an occurrence of any text element and return True if a text element is found and false otherwise.
Because IsEmpty is no longer sufficient spurious output is occuring, for example in TTextSnippetDoc.RenderExtra where empty lines are being emitted where none are required.
Simply testing
IActiveTest.IsEmpty
is no longer sufficient for checking if an active text object has any true content.For example active text that comprises only of a pair of matched ekDocument elements has no content but
IsEmpty
returns false for this document.It is suggested that a new method,
IActiveText.HasContent
is provided that checks of the active text truly has content. Implementations should scan the active text for an occurrence of any text element and return True if a text element is found and false otherwise.Because
IsEmpty
is no longer sufficient spurious output is occuring, for example inTTextSnippetDoc.RenderExtra
where empty lines are being emitted where none are required.