mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 05:02:25 +02:00
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:
parent
84e840566e
commit
37b1f57731
@ -74,7 +74,7 @@ begin
|
|||||||
lcNext := lcSourceToken.NextTokenWithExclusions([ttWhiteSpace, ttReturn]);
|
lcNext := lcSourceToken.NextTokenWithExclusions([ttWhiteSpace, ttReturn]);
|
||||||
|
|
||||||
liReturnCount := 0;
|
liReturnCount := 0;
|
||||||
liMaxReturns := 2;
|
liMaxReturns := Succ(FormattingSettings.Returns.MaxBlankLinesInSection);
|
||||||
lcTest := lcSourceToken;
|
lcTest := lcSourceToken;
|
||||||
|
|
||||||
{ remove all returns up to that point (except one) }
|
{ remove all returns up to that point (except one) }
|
||||||
|
@ -76,7 +76,7 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
|
|
||||||
liReturnCount := 0;
|
liReturnCount := 0;
|
||||||
liMaxReturns := 2;
|
liMaxReturns := Succ(FormattingSettings.Returns.MaxBlankLinesInSection);
|
||||||
lcTest := lcSourceToken;
|
lcTest := lcSourceToken;
|
||||||
|
|
||||||
{ remove all returns up to that point (except one) }
|
{ remove all returns up to that point (except one) }
|
||||||
|
Loading…
Reference in New Issue
Block a user