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

Automatic indentation not indenting enough #289

Open
pvogt09 opened this issue Apr 11, 2024 · 0 comments
Open

Automatic indentation not indenting enough #289

pvogt09 opened this issue Apr 11, 2024 · 0 comments
Labels
bug: minor Something isn't working tool: mh_style Affects the style checker tool

Comments

@pvogt09
Copy link

pvogt09 commented Apr 11, 2024

MISS_HIT Component affected
Please choose one from:

  • Style checker

Your MATLAB/Octave environment

  • MATLAB
  • R2023B

Your operating system and Python version

  • Linux
  • python 3.8.10

Describe the bug
When using the configuration

tab_width: 4
# do not align matrices on opening brackets
align_round_brackets: false
align_other_brackets: false

on the file

var1 = {
    1
    2
};

var2 = [
    1
    2
];

var3 = fun( ...
    1, ...
    2.0 ...
);

with the autofix option, this results in

var1 = {
    1
    2
  };

var2 = [
    1
    2
  ];

var3 = fun( ...
    1, ...
    2.0 ...
  );

where the closing brackets are indented two spaces to few since the indentation level was set to four.
This can happen at different nesting levels of functions, methods, classes and cells/matrices.
It might be related to #284.

@florianschanda florianschanda added bug: minor Something isn't working tool: mh_style Affects the style checker tool labels Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: minor Something isn't working tool: mh_style Affects the style checker tool
Projects
None yet
Development

No branches or pull requests

2 participants