#1876 [Beauty] Blank lines after class body #java


Looks like it doesn't work. As far as I understand it should add some blank lines before last close curly bracket }. But now it always remove all blank lines even added manually.

So end of class file looks like:

        return something;

jEdit: 5.3.0
Beauty: 1.0
java: 1.8.0_121

Step to reproduce:

1.Open any java source file.
2. Add some blank lines before last curly bracket.
3.Set 2 or more blank lines after body class:
1. Plugin Options -> Beauty -> Java Beautifier -> tab Blank Lines
2. Set 2 to Blank Lines After Class Body field.
4. Run the beautifier.
5. Check result.

1 Attachments


  • UR6LAD

    UR6LAD - 2017-02-27

    I've tried change Blank Lines After Methods too. But result the same: zero lines between last method and last curly bracket.

  • Dale Anson

    Dale Anson - 2017-04-03
    • assigned_to: Dale Anson
    • Group: -->
  • Dale Anson

    Dale Anson - 2017-04-03

    Yes, there is a bug here, but also a comment -- the Blank Lines After Class Body should put blank lines AFTER the last curly bracket, not before. This setting is meant to put space between an inner class and whatever follows it. I suppose it doesn't make much sense for an outer class, and the setting should probably be labeled something like Blank Lines After Inner Class Body.


Log in to post a comment.