Opened 10 years ago

Last modified 9 years ago

#3135 closed defect

OMEdit moves comments in algorithms — at Version 1

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: normal Milestone: never
Component: OMEdit Version: trunk
Keywords: Cc:

Description (last modified by massimo ceraolo)

If I have a line comment in OMEdit inside an algorithm, when saving the comment is moved at the end of algorithm.

If I wrote the following model, for instance:

model aa
  Real x;
algorithm
  if time > 0.5 then
  //this is a comment
    x := 2;
  else
    x := 1;
  end if;
end aa;

when saved it becomes:

model aa
  Real x;
algorithm
  if time > 0.5 then
    x := 2;
  else
    x := 1;
  end if;
  //this is a comment
end aa;

Change History (1)

comment:1 by massimo ceraolo, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.