Opened 12 years ago

Closed 12 years ago

#2251 closed defect (duplicate)

when-equations are indented incorrectly

Reported by: Lennart Ochel Owned by: somebody
Priority: high Milestone: 1.9.0
Component: Frontend Version: trunk
Keywords: Cc:

Description (last modified by Lennart Ochel)

It seems that the indention for "instantiateModel" works not very well. When-equations are indented incorrectly (or not that nice). See below:

class test
  Real d(start = -2.0);
equation
  when sample(0.0, 1.0) then
  d = pre(d) + 1.0;
  end when;
end test;

Change History (2)

comment:1 by Lennart Ochel, 12 years ago

Description: modified (diff)

comment:2 by Per Östlund, 12 years ago

Resolution: duplicate
Status: newclosed

It's not only when-equations, but if-equations and possibly more things too. It seems like DAEDump doesn't really handle indentation that well, and it's not entirely trivial to fix it either. The best solution would be to just get rid of the old code, and use the DAEDumpTpl template instead that we should have switched to a long time ago. I've opened another ticket for that (#2260), so I'm closing this one.

Note: See TracTickets for help on using tickets.