Opened 8 years ago
Closed 7 years ago
#4386 closed defect (fixed)
Text formatting is not preserved in OMEdit
Reported by: | Andrea Bartolini | Owned by: | Martin Sjölund |
---|---|---|---|
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 by , 8 years ago
comment:2 by , 8 years ago
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 by , 8 years ago
Component: | OMEdit → Interactive Environment |
---|---|
Owner: | changed from | to
Status: | new → assigned |
comment:4 by , 7 years ago
Milestone: | 1.12.0 → 1.13.0 |
---|
Milestone moved to 1.13.0 due to 1.12.0 already being released.
comment:5 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → 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).