Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#5268 closed defect (duplicate)

Bad code formatting; make it optional

Reported by: dariomangoni@… Owned by: Adeel Asghar
Priority: high Milestone: 1.13.1
Component: OMEdit Version:
Keywords: format Cc:

Description

I hit many bugs in the document formatter:

  • in the new stable release, the indentation increases every time I save a document;
  • the end mymodel; statement often jumps automatically at the end of the previous line;
  • lines are automatically indented, but the indentation often makes no sense and it is not uniform through all the lines
  • inline comments are pushed away
  • in some cases the line
for i in 1:size(myarray,1)

becomes

for i in size(myarray,1)

Please let the code formatting to be optionally disabled!

Attachments (1)

omedit_formatting.png (28.9 KB ) - added by dariomangoni@… 6 years ago.
formatting example

Download all attachments as: .zip

Change History (3)

by dariomangoni@…, 6 years ago

Attachment: omedit_formatting.png added

formatting example

comment:1 by Francesco Casella, 6 years ago

Milestone: Future1.14.0
Resolution: duplicate
Status: newclosed

In all likelyhood, this is the same issue as #5187. Please follow that, and if you still have this problem once #5187 is fixed, feel free to reopen this ticket.

comment:2 by Francesco Casella, 6 years ago

Milestone: 1.14.01.13.1
Note: See TracTickets for help on using tickets.