Opened 7 years ago
Closed 7 years ago
#4386 closed defect (fixed)
Text formatting is not preserved in OMEdit
Reported by: | andrea.bartolini | Owned by: | sjoelund.se |
---|---|---|---|
Priority: | critical | Milestone: | 1.13.0 |
Component: | Interactive Environment | Version: | v1.12.0 |
Keywords: | Cc: |
Description
Sometimes OMEdit does not preserve the text formatting, particularly when all the content of a package is saved in one file.
Particularly:
- indentation of class instantiated via drag&drop is not maintained
- indentation of comments is not maintained
- blank rows are removed
- formatting of formulas is not maintained, or is lost when a formula is copy-pasted
OMEdit 1.12.0~dev-271-g8567e64
Connected to OpenModelica 1.12.0~dev-620-g2163c0b
sysop: Ubuntu 14.04 64 bit
Change History (5)
comment:1 Changed 7 years ago by janK
comment:2 Changed 7 years ago by janK
I found another minimal case, when the formatting is not preserved:
1.) create a new model
2.) add an object (e.g. a RealInput) to the DiagramView
3.) add some blank lines and comments in between your code (for monitoring)
3.) add a single line comment (//) in the very first line
4.) move the object (the connector)
-> BAM! -> All new lines have vanished without a warning
comment:3 Changed 7 years ago by adeas31
- Component changed from OMEdit to Interactive Environment
- Owner changed from adeas31 to sjoelund.se
- Status changed from new to assigned
comment:4 Changed 7 years ago by casella
- Milestone changed from 1.12.0 to 1.13.0
Milestone moved to 1.13.0 due to 1.12.0 already being released.
comment:5 Changed 7 years ago by Andrea.Bartolini
- Resolution set to fixed
- Status changed from assigned to closed
Is it possible to narrow down "sometimes" and provide a minimal example? I observed this faulty behavior also from time to time, as in #4368. I think this is more an error of the backend and not an error of OMEdit (?, Adeel).