-
Notifications
You must be signed in to change notification settings - Fork 76
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
Comments
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
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
The text was updated successfully, but these errors were encountered: