Skip to content

Commit 808d715

Browse files
qasimikramhenrikfrovstqikram
authored
Marketing Text: Remove lower boundary check as this blocks languages where spaces are not used (#774)
#### Summary Remove lower boundary check as this blocks languages where spaces are not used. #### Work Item(s) Fixes # [AB#507432](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/507432) --------- Co-authored-by: hmadsen <hmadsen@microsoft.com> Co-authored-by: Qasim Ikram <qaikram@microsoft.com>
1 parent 3fee8b0 commit 808d715

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/System Application/App/Entity Text/src/EntityTextImpl.Codeunit.al

+1-7
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ codeunit 2012 "Entity Text Impl."
337337
FactKey: Text;
338338
FactValue: Text;
339339
CandidateNumber: Text;
340-
MinParagraphWords: Integer;
341340
FoundNumber: Boolean;
342341
FormatValid: Boolean;
343342
begin
@@ -350,20 +349,15 @@ codeunit 2012 "Entity Text Impl."
350349
Session.LogMessage('0000JYD', TelemetryTaglineCleanedTxt, Verbosity::Normal, DataClassification::SystemMetadata, TelemetryScope::ExtensionPublisher, 'Category', TelemetryCategoryLbl);
351350
Completion := CopyStr(Completion, 9).Trim();
352351
end;
353-
354-
MinParagraphWords := 50;
355-
356352
FormatValid := true;
357353
case TextFormat of
358354
TextFormat::TaglineParagraph:
359355
begin
360356
SplitCompletion := Completion.Split(EncodedNewlineTok + EncodedNewlineTok);
361357
FormatValid := SplitCompletion.Count() = 2; // a tagline + paragraph must contain an empty line
362-
if FormatValid then
363-
FormatValid := SplitCompletion.Get(2).Split(' ').Count() >= MinParagraphWords; // the paragraph must be more than MinParagraphWords words
364358
end;
365359
TextFormat::Paragraph:
366-
FormatValid := (not Completion.Contains(EncodedNewlineTok + EncodedNewlineTok)) and (Completion.Split(' ').Count() >= MinParagraphWords); // multiple paragraphs should be avoided, and must have more than MinParagraphWords words
360+
FormatValid := (not Completion.Contains(EncodedNewlineTok + EncodedNewlineTok)); // multiple paragraphs should be avoided
367361
TextFormat::Tagline:
368362
FormatValid := not Completion.Contains(EncodedNewlineTok); // a tagline should not have any newline
369363
TextFormat::Brief:

0 commit comments

Comments
 (0)