Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operator Padding Rules Not Followed in String #94

Open
traptw1thin opened this issue Sep 29, 2020 · 0 comments
Open

Operator Padding Rules Not Followed in String #94

traptw1thin opened this issue Sep 29, 2020 · 0 comments

Comments

@traptw1thin
Copy link

Even with the MatrixIndexing_ArithmeticOperatorPadding and CellArrayIndexing_ArithmeticOperatorPadding set to 1, space is still deleted in the following code:

plotAndLabel(t, x29, "A " + f29 + " Hz Sine Wave", false);

The space I am referring to is the space after the first plus sign, so after running MBeautifier it looks like this:

plotAndLabel(t, x29, "A " +f29 + " Hz Sine Wave", false);

and I have to manually go through and readd the space after the plus sign.

this is what plotAndLabel() is:

function plotAndLabel(t, x, myTitle, isStem)
figure;
if isStem
stem(t, x);
ylabel('x(n)');
else
plot(t, x);
ylabel('x(t)');
end
xlabel('t (seconds)');
title(myTitle);
% hold on;
end

mkr3mer added a commit to mkr3mer/MBeautifier that referenced this issue Feb 10, 2021
Operators after strings are binary, e.g. "1" + x should not be formatted
as "1" +x.

Fixes davidvarga#94, davidvarga#103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant