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.

`"space-before-combinator": 1` disturb indentation rule...

See original GitHub issue

Hi I want to add a space before combinator, but I want reshape that new line first-letter is not space. When line break is applied by csscomb, the setting “space-before-combinator: 1” is applied to the new line (first letter is combinator) as well, so the indentation does not become what I intended.

Is there a way to solve this issue?

Example:

Default

.foo {
> .foo {
prop: val;
}
}

After using CSSComb:

Actual result 1(bad):

space-before-combinator:" ",

bad1

Actual result 2(bad):

space-before-combinator:"",

bad2

The result I am expecting to get(Good):

space-before-combinator:" ",

good

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
mrleblanc101commented, Jan 9, 2018

Bump

2reactions
tonyganchcommented, Mar 22, 2019

Fixed with #599.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Indent Your Code | Introduction to Computer Science
Basically, the general rule for indenting is that code between curly brackets ... you will indent one time for each set of brackets...
Read more >
HTML Indentation and Spacing - LearnHowToProgram.com
As we see here, when an HTML tag is nested inside another HTML tag, it's indented. There is one exception: we didn't indent...
Read more >
indent - Rule
Rule : indent. Enforces indentation with tabs or spaces. Rationale. Using only one of tabs or spaces for indentation leads to more consistent...
Read more >
indent(1) - Linux manual page - man7.org
In the first form, one or more input files are specified. indent makes a backup copy of each file, and the original file...
Read more >
New rule proposal: Indent by one · Issue #1029 - GitHub
Description: The indentation of a line of code should never be indented by more than four spaces relative to the preceding line. Rationale:...
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