Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Preserve indentation #111

Open
spinningarrow opened this issue Nov 16, 2014 · 9 comments
Open

Preserve indentation #111

spinningarrow opened this issue Nov 16, 2014 · 9 comments
Labels

Comments

@spinningarrow
Copy link

My input.css file is indented using tabs, but the output.css file ends up with two spaces. Is there an option for keeping the indentation of the output file the same as the input file?

@MoOx
Copy link
Contributor

MoOx commented Nov 16, 2014

Rework engine doesn't save at all whitespaces. So there is no option & won't be soon.
That was one of the reason I wanted to switch to postcss :)

@spinningarrow
Copy link
Author

Hmm, where do the two spaces come from? If the original file's indentation can't be preserved, perhaps there can be an option that allows specifying the kind of indentation the output file should have.

@spinningarrow
Copy link
Author

Btw, are you working on a myth fork using postcss? I don't know if I can, but I'd love to help!

@MoOx
Copy link
Contributor

MoOx commented Nov 16, 2014

Please take a look to it https://github.com/cssnext/cssnext :)

@ianstormtaylor
Copy link
Contributor

What's the need for preserving indentation here?

@spinningarrow
Copy link
Author

Aesthetics 😃

@ianstormtaylor
Copy link
Contributor

:) Sorry but I'm gonna close just because it's not something that's going to be supported anytime soon, at least from this level. If you want you can take it up with Rework and if it gets added there it'll be easy to add here as well.

@spinningarrow
Copy link
Author

👍

@Alhadis
Copy link

Alhadis commented Aug 23, 2015

👍

I wonder how Myth would fare being carried atop my CSS tokeniser function. Hrm... 😁

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

No branches or pull requests

4 participants