Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#2123 closed defect (fixed)

Modelica text view adds newline in when statement

Reported by: Malte Lenz Owned by: Adeel Asghar
Priority: low Milestone: 1.9.4
Component: OMEdit Version: trunk
Keywords: Cc:

Description

The following model gets an unexpected newline inserted before the "end when;" line when viewing it in Modelica Text View.

model tightsample
  Real x(start = 1);
  discrete Real y(start = 0);
equation
  der(x) = -x;
  when sample(0, 0.001) then
      y = pre(y) + 1;
  end when;
end tightsample;

Change History (9)

comment:1 by Martin Sjölund, 12 years ago

Component: FrontendOMEdit
Owner: changed from somebody to Adeel Asghar
Priority: normallow

comment:2 by Martin Sjölund, 11 years ago

Milestone: 1.9.01.9.1

Postponed until 1.9.1

comment:3 by Martin Sjölund, 10 years ago

Milestone: 1.9.11.9.2

This ticket was not closed for 1.9.1, which has now been released. It was batch modified for milestone 1.9.2 (but maybe an empty milestone was more appropriate; feel free to change it).

comment:4 by Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:5 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:6 by Adeel Asghar, 9 years ago

Status: newaccepted

This issue has now been fixed in a development branch https://github.com/adeas31/OMEdit/tree/indentation for OpenModelica 1.9.4 final release.

comment:7 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: acceptedclosed

The fix is now available via the nightly build.

comment:8 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:9 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.