Skip to content

Commit 483496a

Browse files
committed
Merge branch 'feature/103-snippets-editor-sometimes-strips-p-tags' into develop
Fixes #103
2 parents 8651929 + d802d64 commit 483496a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: Src/ActiveText.UMain.pas

+5-5
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ TActiveTextAttrNames = record
195195
/// <summary>Checks if the active text object contains only plain text.
196196
/// </summary>
197197
/// <remarks>Plain text is considered to be active text with no action
198-
/// elements except for "para". This can rendered in plain text with no
199-
/// loss of formatting.</remarks>
198+
/// elements except for "document" or "block". This can rendered in plain
199+
/// text with no loss of formatting.</remarks>
200200
function IsPlainText: Boolean;
201201
/// <summary>Checks if the active text object is a valid active text
202202
/// document.</summary>
@@ -513,8 +513,8 @@ TActiveText = class(TInterfacedObject,
513513
/// </summary>
514514
/// <remarks>
515515
/// <para>Plain text is considered to be active text with no action
516-
/// elements except for "para". This can rendered in plain text with no
517-
/// loss of formatting.</para>
516+
/// elements except for "document" or "block". This can rendered in plain
517+
/// text with no loss of formatting.</para>
518518
/// <para>Method of IActiveText.</para>
519519
/// </remarks>
520520
function IsPlainText: Boolean;
@@ -899,7 +899,7 @@ function TActiveText.IsPlainText: Boolean;
899899
for Elem in fElems do
900900
begin
901901
if Supports(Elem, IActiveTextActionElem, ActionElem)
902-
and not (ActionElem.Kind in [ekPara, ekDocument]) then
902+
and not (ActionElem.Kind in [ekBlock, ekDocument]) then
903903
Exit(False);
904904
end;
905905
Result := True;

0 commit comments

Comments
 (0)