Skip to content

Commit

Permalink
Fixed ProtectedArea statement indentation migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Jan 3, 2024
1 parent ca261b8 commit 01d3f84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2017, 2023 Obeo.
* Copyright (c) 2017, 2024 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -227,6 +227,7 @@ private void setTagPrefixes(ProtectedArea protectedArea) {
final TextStatement lastText = getLastText(protectedArea);
if (lastText != null && !lastText.isNewLineNeeded()) {
protectedArea.setEndTagPrefix(extractPrefix(lastText));
EcoreUtil.remove(lastText);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
[template public myTemplate(myParam : ecore::EPackage)]
[protected (myParam.name) startTagPrefix('// ') endTagPrefix('// ')]
some static text.
[/protected]
[/protected]
[/template]
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
[template public myTemplate(myParam : ecore::EPackage)]
[protected (myParam.name) startTagPrefix('// ') endTagPrefix('// ')]
some static text.
[/protected]
[/protected]
[/template]

0 comments on commit 01d3f84

Please sign in to comment.