Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cell vector (bracket) support? #59

Open
BaconPancakes opened this issue Jun 23, 2020 · 1 comment
Open

cell vector (bracket) support? #59

BaconPancakes opened this issue Jun 23, 2020 · 1 comment

Comments

@BaconPancakes
Copy link

Is there an analogous rule for formatting multi-line cell vectors, similar to the matrix formatting? Seems that indents are just removed in this case.

@affenwiesel
Copy link
Owner

affenwiesel commented Jun 30, 2020

I didn't even know that cell arrays even exists ;)
I added the requested feature in the new version.
However, since cell arrays may be rather complicated, it doesn't yet work for all scenarios.
For now, only one layer of cells is allowed. So e.g.

C={1
    [2 3]
    {4 5 6}}

will work. If you try to also break the inner cell into multiple lines like

C={1
    [2 3]
    {4 
    5 
    6}}

, the formatter will fail. If this becomes a problem (for a reasonable amount of people ;)), I'm going to try fixing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants