[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #50756] display of objects in cell arrays and
From: |
Colin Macdonald |
Subject: |
[Octave-bug-tracker] [bug #50756] display of objects in cell arrays and structs is suppressed |
Date: |
Fri, 6 Apr 2018 21:32:14 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0 |
Follow-up Comment #8, bug #50756 (project octave):
I'm sure lots of smart things could be done here (indenting properly for
example) but for 4.4, I would be happy with minimizing regression by just
printing as before but with "[1,5] = "
>> syms x
>> C = {1 x 42 2*x 'hello', [x x; x x]}
C =
{
[1,1] = 1
[1,2] = (sym) x
[1,3] = 42
[1,4] = (sym) 2⋅x
[1,5] = hello
[1.6] = (sym 2×2 matrix)
⎡x x⎤
⎢ ⎥
⎣x x⎦
}
Or even
>> C
C =
{
[1,1] = 1
[1,2] = <class sym>
[1,3] = 42
[1,4] = <class sym>
[1,5] = hello
[1.6] = <class sym>
}
The current behaviour has an undesirable newline in it:
C =
{
[1,1] = 1
[1,2] =
<class sym>
[1,3] = 42
[1,4] =
<class sym>
[1,5] = hello
[1,6] =
<class sym>
}
So it seems like a minimal fix is removing that newline...
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?50756>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #50756] display of objects in cell arrays and structs is suppressed,
Colin Macdonald <=