question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Indented block formatting not stable

See original GitHub issue

Bug 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:open
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
hosseinmdcommented, Aug 29, 2022

Yes, this is a bug. I will, but Now I don’t have enough time.

0reactions
turadgcommented, Aug 29, 2022

@hosseinmd have you confirmed this is a bug? Is it one you intend to work on or will it require a community fix?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found