Skip to content
This repository was archived by the owner on Jun 6, 2022. It is now read-only.

lineBreak does not respect indentation #18

Closed
MoOx opened this issue Jun 13, 2015 · 7 comments
Closed

lineBreak does not respect indentation #18

MoOx opened this issue Jun 13, 2015 · 7 comments

Comments

@MoOx
Copy link
Contributor

MoOx commented Jun 13, 2015

@custom-selector :--heading h1, h2, h3, h4, h5, h6;

  article :--heading + p { 
    margin-top: 0;
  }

output

article h1 + p,
article h2 + p,
article h3 + p { 
    margin-top: 0;
  }

but should output

  article h1 + p,
  article h2 + p,
  article h3 + p { 
    margin-top: 0;
  }

You probably just need to join selector with \n + rule.before

@yisibl
Copy link
Contributor

yisibl commented Jun 29, 2015

@MoOx
Copy link
Contributor Author

MoOx commented Jun 29, 2015

Selector is not indented here, please just double check the code I wrote :)

@yisibl
Copy link
Contributor

yisibl commented Jun 29, 2015

OK, I see.

@MoOx
Copy link
Contributor Author

MoOx commented Jun 29, 2015

@yisibl
Copy link
Contributor

yisibl commented Jun 30, 2015

Fix: 74ee82e

@MoOx Please check the code.

@MoOx
Copy link
Contributor Author

MoOx commented Jun 30, 2015

looks like it's a good start :)

@MoOx MoOx closed this as completed Jun 30, 2015
@yisibl
Copy link
Contributor

yisibl commented Jun 30, 2015

We must used reBLANK_LINE to remove the extra blank line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants