Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336685 - Indentation of protected area is removed inside a file block
Summary: Indentation of protected area is removed inside a file block
Status: CLOSED WORKSFORME
Alias: None
Product: Acceleo
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-09 03:57 EST by Gonzague Reydet CLA
Modified: 2011-05-05 10:21 EDT (History)
2 users (show)

See Also:


Attachments

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