davidvarga / MBeautifier

MBeautifier is a MATLAB source code formatter, beautifier. It can be used directly in the MATLAB Editor and it is configurable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`MIndenter/performIndenting` error

casperdcl opened this issue · comments

Running MBeautifier on https://github.com/davidvarga/MBeautifier/blob/01c8e14/%2BMBeautifier/DirectiveChangeType.m:

Cell contents indices must be greater than 0

Error in MBeautifier.MIndenter/performIndenting (line 133)
                            if (strcmp(stack{end}, 'function'))
Error in MBeautify.formatFileNoEditor (line 53)
            text = indenter.performIndenting(text);

Fixed :)

Great @davidvarga! Though MBeautifier still fails to run on its own codebase because of #98