Skip to content

Commit

Permalink
Remove lower boundary check as this blocks languages where spaces are…
Browse files Browse the repository at this point in the history
… not used.
  • Loading branch information
henrikfrovst authored and qikram committed Mar 18, 2024
1 parent 0f44dd5 commit 45b73c2
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,6 @@ codeunit 2012 "Entity Text Impl."
begin
SplitCompletion := Completion.Split(EncodedNewlineTok + EncodedNewlineTok);
FormatValid := SplitCompletion.Count() = 2; // a tagline + paragraph must contain an empty line
if FormatValid then
FormatValid := SplitCompletion.Get(2).Split(' ').Count() >= MinParagraphWords; // the paragraph must be more than MinParagraphWords words
end;
TextFormat::Paragraph:
FormatValid := (not Completion.Contains(EncodedNewlineTok + EncodedNewlineTok)) and (Completion.Split(' ').Count() >= MinParagraphWords); // multiple paragraphs should be avoided, and must have more than MinParagraphWords words
Expand Down

0 comments on commit 45b73c2

Please sign in to comment.