Opened 8 years ago
Closed 8 years ago
#4310 closed defect (fixed)
OMEdit: Code folding option unavailable if line ends with whitspace
Reported by: | Jan Kokert | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | high | Milestone: | 1.12.0 |
Component: | OMEdit | Version: | |
Keywords: | code folding white space | Cc: |
Description
I found another litte bug in OMEdit. It took me a while to narrow it down...
If a line ends with a whitspace (single oder multiple spaces) the code folding option is not available.
As an example consider the following example. The model has errors but they don't matter in this case.
model Battery equation // code folds properly connect(a, b) annotation( Line(points = {{0, -10}, {0, -50}}, color = {0, 0, 255})); // no code folding available connect(c, d) annotation( Line(points = {{0, 10}, {0, 100}}, color = {0, 0, 255})); end Battery;
Change History (1)
comment:1 by , 8 years ago
Milestone: | Future → 1.12.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Well the idea is to not fold any annotation that has some text in the end.
However, I have fixed it in 44b8b42/OMEdit so that whitespace is ignored in such case.