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

Configuration rules do not get updated

cszczepaniak opened this issue · comments

A change in the XML configuration does not change the formatting behavior. I tried running MBeautify.formatCurrentEditorPage on the following dummy file:

if(true)
end

With the default setting of 1 for the right padding on the if keyword, the formatted output looked correct:

if (true)
end

If I change the configuration rule to the following:

...
<KeyworPaddingRule>
    <Keyword>if</Keyword>
    <RightPadding>4</RightPadding>
</KeyworPaddingRule>
...

I expect there to be four spaces between if and (true), but the formatted output looks the same as before.

Was fixed directly by fixing your other issue .