#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 , 13 years ago
| Component: | Frontend → OMEdit |
|---|---|
| Owner: | changed from to |
| Priority: | normal → low |
comment:2 by , 12 years ago
| Milestone: | 1.9.0 → 1.9.1 |
|---|
comment:3 by , 11 years ago
| Milestone: | 1.9.1 → 1.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 , 11 years ago
| Milestone: | 1.9.2 → 1.9.3 |
|---|
Milestone changed to 1.9.3 since 1.9.2 was released.
comment:6 by , 10 years ago
| Status: | new → accepted |
|---|
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 , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
The fix is now available via the nightly build.
Note:
See TracTickets
for help on using tickets.

Postponed until 1.9.1