Spacing.createSpacing(0, Integer.MAX_VALUE, 1, true, Integer.MAX_VALUE)

I have a formatter block which ALWAYS returns
"Spacing.createSpacing(0, Integer.MAX_VALUE, 1, true,
Integer.MAX_VALUE)" for its getSpacing method. Yet, when I reformat a
file, IDEA strips all newlines from the file and places all elements on
a single line. This doesn't make any sense, does it? I have subblocks
for every ASTNode which is not of type TokenType.WHITE_SPACE. Each one
has wrap of NONE, indent of NoneIndent, and no alignment.

Shouldn't this spacing force every node to be on its own line? Why
doesn't it?

0

Please sign in to leave a comment.