LESS: incorrect nested rule indentation when curly braces on own line #1801

Closed
opened 2013-09-04 00:44:55 +02:00 by marijnh · 5 comments
marijnh commented 2013-09-04 00:44:55 +02:00 (Migrated from gitlab.com)
  1. Go to http://codemirror.net/mode/less/index.html
  2. Type:
body
{
}
  1. Place cursor after the { and press Enter
  2. Type .foo, Enter, {, Enter, }

Result:

body
{
  .foo
    {
  }
}

Expected:

body
{
  .foo
  {
  }
}
1. Go to http://codemirror.net/mode/less/index.html 2. Type: ``` body { } ``` 1. Place cursor after the `{` and press Enter 2. Type `.foo`, Enter, `{`, Enter, `}` Result: ``` body { .foo { } } ``` Expected: ``` body { .foo { } } ```
marijnh commented 2013-09-05 11:55:46 +02:00 (Migrated from gitlab.com)

@peterkroon Want to take a look at this?

`@peterkroon` Want to take a look at this?
marijnh commented 2013-09-05 13:24:40 +02:00 (Migrated from gitlab.com)

mentioned in merge request !8962

mentioned in merge request !8962
marijnh commented 2013-09-05 14:20:31 +02:00 (Migrated from gitlab.com)

mentioned in merge request !8963

mentioned in merge request !8963
marijnh commented 2013-09-05 19:30:37 +02:00 (Migrated from gitlab.com)

Thanks @peterkroon!

Thanks `@peterkroon`!
marijnh (Migrated from gitlab.com) closed this issue 2013-09-06 09:42:07 +02:00
marijnh commented 2021-08-30 01:19:55 +02:00 (Migrated from gitlab.com)

mentioned in issue #4638

mentioned in issue #4638
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/codemirror5#1801
No description provided.