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

Quotes formatting

mkr3mer opened this issue · comments

I have encountered a couple cases with MATLAB strings that have problems after formatting.

Case 1:
"bar" + sprintf("%d ",foo) =>
"bar" +sprintf( %d ",foo)
which is no longer valid syntax.

Case 2:
sprintf("%d ",foo) =>
sprintf(" %d ",foo)
which is annoying, but less of a problem

I am using MATALB R2019b.