@@ -175,6 +175,8 @@ Class constructor()
175
175
176
176
This:C1470 .specialComments := "%}])" // Compilation modifier & …
177
177
178
+ This:C1470 .beautify ()
179
+
178
180
// === === === === === === === === === === === === === === === === === === === === === === === === === ===
179
181
Function beautify ()
180
182
@@ -246,7 +248,8 @@ An empty line is ignored if:
246
248
If (This:C1470 .options .aLineOfCommentsMustBePrecededByALineBreak \
247
249
&& (This:C1470 .lineIndex > 0)\
248
250
&& This:C1470 .isNotEmpty (This:C1470 .previousLine )\
249
- && This:C1470 .isNotComment (This:C1470 .previousLine ))
251
+ && This:C1470 .isNotComment (This:C1470 .previousLine )\
252
+ && This:C1470 .isNotReservedComment ($line ))
250
253
251
254
This:C1470 ._ouput .push ("" )
252
255
@@ -551,7 +554,8 @@ Function after() : Text
551
554
End if
552
555
553
556
// MARK: Delete empty lines at the beginning of the method
554
- If (This:C1470 .options .removeEmptyLinesAtTheBeginOfMethod )
557
+ If (This:C1470 .options .removeEmptyLinesAtTheBeginOfMethod )\
558
+ && (This:C1470 ._ouput .length > 0)
555
559
556
560
While (This:C1470 ._ouput [0 ]= "")
557
561
@@ -561,7 +565,8 @@ Function after() : Text
561
565
End if
562
566
563
567
// MARK: Remove empty lines at the end of the method
564
- If (This:C1470 .options .removeEmptyLinesAtTheEndOfMethod )
568
+ If (This:C1470 .options .removeEmptyLinesAtTheEndOfMethod )\
569
+ && (This:C1470 ._ouput .length > 0)
565
570
566
571
$indx := This:C1470 ._ouput .length - 1
567
572
0 commit comments