Jedi Code Format: Respect "Max consecutive blank lines before removal" setting. Issue #39114, patch by Udo Sommer.

git-svn-id: trunk@65334 -
This commit is contained in:
juha 2021-06-30 22:52:34 +00:00
parent 84e840566e
commit 37b1f57731
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ begin
lcNext := lcSourceToken.NextTokenWithExclusions([ttWhiteSpace, ttReturn]);
liReturnCount := 0;
liMaxReturns := 2;
liMaxReturns := Succ(FormattingSettings.Returns.MaxBlankLinesInSection);
lcTest := lcSourceToken;
{ remove all returns up to that point (except one) }

View File

@ -76,7 +76,7 @@ begin
exit;
liReturnCount := 0;
liMaxReturns := 2;
liMaxReturns := Succ(FormattingSettings.Returns.MaxBlankLinesInSection);
lcTest := lcSourceToken;
{ remove all returns up to that point (except one) }