I'm using AbstractBlock and FormattingModelBuilder to format my files, all according to the tutorial http://confluence.jetbrains.com/display/IntelliJIDEA/Formatter
A snippet of my file looks like this:
en a cool name, another cool name
de a german name
I want the blank line between "a german name" and the closing bracket to be removed. In the spacing builder I create in my FormattingModelBuilder i tried the following:
return new SpacingBuilder(settings).between(SOLTypes.ALTERNATIVE_NAME, SOLTypes.CLOSING_BRACKET).blankLines(0);
However, the blank line stays.
Actually I don't even want the linebreaks and whitespaces to be part of SOLTypes.LANGUAGE_DEFINITION, but I had to allow it in my grammer definition cause otherwise errors occured when there was a whitespace or newline -> different topic.
Thanks for any help,