Indented block formatting not stable
See original GitHub issueBug description
A code block like this is stable,
* ```md
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
* ```
But when the code block’s syntax isn’t specified, the tool changes to indentation syntax, which is not stable.
Actual
Example
Pass 0:
* ```
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
* ```
Pass 1:
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
Pass 2:
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
Pass 3:
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
Pass 4:
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
Pass 5:
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
Pass 6:
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
Pass 7:
* Then the bounds would iterate over the key sequence
* ---------------- -----------------------------------
* 'bar', 'goomba' bar, baz, foocount, foopriority
* 'bar', 'joober' bar, baz, foocount, foopriority
Expected
- Indented blocks aren’t reformatted
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
expected an indented block” Error in Your Python Code
If your editor determines that a line of code should be indented, it will add tabs or spaces automatically. This will automatically indent...
Read more >What should I do with "Unexpected indent" in Python?
The best way to avoid these issues is to always use a consistent number of spaces when you indent a subblock, and ideally...
Read more >Can't increase Indent on even numbered pages...
But if I move it entirely to the even page, it doesn't work. No change in formatting involved...just a change in page. 3....
Read more >Wrong indenting - Visual Studio Feedback
For the issue "VC is using both tabs and spaces to indent a single line" may be because the Tab size is different...
Read more >Incorrect Indenting Behavior in VS · Issue #38830
First thing i'll do is go in to Tool::Options then Languages and set "Indenting to" "BLOCK". I'm thinking what might be happening, and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes, this is a bug. I will, but Now I don’t have enough time.
@hosseinmd have you confirmed this is a bug? Is it one you intend to work on or will it require a community fix?