segmentio / myth

A CSS preprocessor that acts like a polyfill for future versions of the spec.
4.33k stars 131 forks source link

Preserve indentation #111

Open spinningarrow opened 9 years ago

spinningarrow commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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

MoOx commented 9 years ago

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

ianstormtaylor commented 9 years ago

What's the need for preserving indentation here?

spinningarrow commented 9 years ago

Aesthetics :smiley:

ianstormtaylor commented 9 years ago

:) 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 commented 9 years ago

:+1:

Alhadis commented 9 years ago

:+1:

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