Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366508

Summary: Invalid generated indentation
Product: [Modeling] Acceleo Reporter: Stephane Begaudeau <stephane.begaudeau>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: laurent.goubet
Version: 3.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Stephane Begaudeau CLA 2011-12-13 05:00:59 EST
If I generate with the following templates:

<tabulation>[aClass.attributes()/]
<tabulation>[aClass.references()/]

And:
[template private attributes(aClass : EClass)]
[for( x : X | y)]
blabla

[/for]
[/template]

[template private references(aClass : EClass)]
[for( x : X | y)]
bloblo

[/for]
[/template]

The result will look like this:
<tabulation>blabla
<tabulation>
<tabulation>blabla
<tabulation>
<tabulation>
<tabulation>bloblo
<tabulation>
<tabulation>bloblo
<tabulation>
<tabulation>bloblo
<tabulation>

But there should only be one new line between the blablas and the bloblos.
Comment 1 Laurent Goubet CLA 2016-04-07 04:25:53 EDT
This actually works as designed.

The "extra" empty line is what is between these two :

<tabulation>[aClass.attributes()/] <=== here
<tabulation>[aClass.references()/]