davidvarga / MBeautifier

MBeautifier is a MATLAB source code formatter, beautifier. It can be used directly in the MATLAB Editor and it is configurable.
GNU General Public License v3.0
478 stars 75 forks source link

Quotes formatting #80

Closed mkr3mer closed 4 years ago

mkr3mer commented 4 years ago

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.