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

Bug 336685

Summary: Indentation of protected area is removed inside a file block
Product: [Modeling] Acceleo Reporter: Gonzague Reydet <gonzague.reydet>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: sebastien.latre, stephane.begaudeau
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Gonzague Reydet CLA 2011-02-09 03:57:17 EST
Build Identifier: 3.0.2.v20110208-0310

The indentation of protected area is removed when the protected block is contained directly within a file block

Reproducible: Always
Comment 1 Stephane Begaudeau CLA 2011-05-05 10:21:26 EDT
>>> Reproducible: Always

I tried to reproduce the problem, and it works for me as you can see it in the following picture: https://lh6.googleusercontent.com/_R0aPxLxg16E/TcKvBu7ddjI/AAAAAAAAARA/m74rtZlM4q4/ProtectedAreaInFileBlock.png

(Even after several new generations)

Please note that the indentation of the "start of user code" and "end of user code" is only kept if the is something else than a whitespace on the line. In my screen, if I remove the "//" before the begin and the end of the protected block I would lost their indentation but not the indentation of the body of the protected area (and it would be the same in a template).

It may be working for me because of my new fix for this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=331978