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

Wrong spacing while having mathematical equations inside brackets

ManosAvgou opened this issue · comments

If you write :

x = [-(a-b)*2 (a-b)/2];

the MBeautifier returns:

x = [-(a - b) * 2(a-b) / 2];

in which generates error for matlab. I know that this is not the best coding but for matlab is totally acceptable and correct and you should also include that case in your checks.