From 2ad228461996ad66e8d5c8bd0f7f70b89ff1ed04 Mon Sep 17 00:00:00 2001 From: ThundEric <75761862+ThundEric@users.noreply.github.com> Date: Tue, 22 Mar 2022 09:35:12 -0300 Subject: [PATCH] Update hbfmtcls.prg Bug fix: When nLineFnc:=1 (default), it is not including an empty line before FUNCTION/PROCEDURE.. --- contrib/hbformat/hbfmtcls.prg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/hbformat/hbfmtcls.prg b/contrib/hbformat/hbfmtcls.prg index edff9e505a..f6bdea7689 100644 --- a/contrib/hbformat/hbfmtcls.prg +++ b/contrib/hbformat/hbfmtcls.prg @@ -402,7 +402,7 @@ METHOD Reformat( aFile ) CLASS HBFormatCode nPosComment += nIndent ENDIF IF i > 1 .AND. ( ( nState == RF_STATE_RET .AND. ::nLineRet > 0 .AND. nStatePrev != RF_STATE_FUNC ) .OR. ; - ( nState == RF_STATE_FUNC .AND. ::nLineFnc > 0 .AND. nStatePrev > 0 ) .OR. ; + ( nState == RF_STATE_FUNC .AND. ::nLineFnc > 0 ) .OR. ; // ThundEric (www.idlagam.com) ( nState == RF_STATE_VAR .AND. nStatePrev != nState .AND. ::nLineVar > 0 ) .OR. ; ( nState == RF_STATE_CODE .AND. nStatePrev != nState .AND. ::nLineCode > 0 ) ) nPos := i - 1