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

EndingNewLineCount is not handled correctly #117

Open
stinos opened this issue Jan 26, 2022 · 0 comments
Open

EndingNewLineCount is not handled correctly #117

stinos opened this issue Jan 26, 2022 · 0 comments

Comments

@stinos
Copy link

stinos commented Jan 26, 2022

Given an open editor page with only one statement and no newline, I'd expect EndingNewLineCount=1 to add a newline at the end of the file (please correct me if that's not what it does).
I'm using the default settings.xml in a fresh clone, in a new (no preferences changed) R2021b installation.

So the input is:

a = 1;

but after running MBeautify.formatCurrentEditorPage() nothing changes.

When the input is:

a = 1;

it is left as-is, which is ok.
And when the input is

a = 1;


one newline is removed which is also ok.

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