The indentation rules of Acceleo lead to lines being generated with only whitespace characters in them. Consider the following
[template tmpl1(obj : OclAny)]
[template tmpl2(obj : OclAny)]
This line will be indented because the above call was indented.
Another line that will also be indented.
The empty line in tmpl2 will also be indented. As a result the output file will contain a line with only spaces.
Is there a way to avoid that? Can Acceleo's engine take care of that?
I'm thinking of a workaround of registering a generation listener to store a list of generated files, then iterating them in Java to clear lines containing only whitespace.
Any other suggestions?