Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366508 - Invalid generated indentation
Summary: Invalid generated indentation
Status: CLOSED INVALID
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-13 05:00 EST by Stephane Begaudeau CLA
Modified: 2016-04-07 04:25 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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()/]