Jump to content
FPiette

Rearrange implementation modifies empty lines at end of method

Recommended Posts

When I use the implementation section rearrange feature, MMX remove empty lines which separate each method.

Before rearrangement, my code looks like:

 

{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
// Some Comment
procedure TForm1.Method1;
begin
    // Some code
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}
// Some more comment
procedure TForm1.Method2;
begin
    // Some code
end;


{* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *}

There are TWO empty lines after the "end;" at the end of each method.

After rearrangement, there is only one left.

 

Is there and option to avoid this empty line removal?

 

Thanks.

 

Share this post


Link to post

AFAIK there is no such option.

 

MMX parses the methods bodies and writes them in the requested order with a hard coded one line between each method body. Comments preceding each method are associated to that method (at least with the default parsing settings). The two empty lines after the method bodies in your example are not associated with the method.

Share this post


Link to post

Thanks Uwe.

Maybe a future option? Either (best) specify the number of empty lines after the "end;", or to leave the lines as is in the source code.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×