Opened 17 years ago

Closed 12 years ago

#1001 closed defect (wontfix)

Text formatting of Modelica files is not saved.

Reported by: donida Owned by: donida
Priority: normal Milestone:
Component: Parser Version: 1.4.3
Keywords: Cc: donida

Description

When loading a file in the omc the text formatting is not saved.

For example, if one considers:

model try

parameter Real a;

Real b;

end try;

load this class in the omc and then "list(try)", the output is:

model try

parameter Real a;
Real b;

end try;

Change History (1)

comment:1 by Per Östlund, 12 years ago

Cc: donida, → donida
Resolution: wontfix
Status: newclosed

list works as intended since it's supposed to do pretty-printing, so this is not something that will be changed. I don't think such functionality should be implemented in the compiler either, since we would need a new parser and internal representation. It's rather trivial to implement such functionality in a client if needed anyway. So based on this, and the fact that this ticket is five years old and probably no longer relevent, I'm going to close the ticket.

Note: See TracTickets for help on using tickets.