-
Notifications
You must be signed in to change notification settings - Fork 3.4k
For those who are tabs people like me #2157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Not at the moment |
I wonder why you need it - do you edit your output css files? |
I guess you should take a look at some "post-formatting" tool like csscomb. |
@lukeapage It looks like we have now a lot of open issues for "preserve source formatting" (incl. those for comments) that mostly overlap each other. I feel like we can just merge all of them into some unified feature request: "total source formatting preserve" (incl. line-breaks) for further discussion and decisions (with #2099 (comment) as a starting point and probably marked for v3 :) |
I was thinking about it recently and I don't know how you'd do it e.g.
becomes
so I actually think there are 2 requirements
Demand for (2) would probably dissipate if we allowed (1) so I'm thinking (1) is probably the way to go. and I was wondering how difficult it would be to seperate out the toCSS into a visitor - then you could have the simple one and a plugin that was more complicated and did formatting (and if the nodes contained whitespace and someone wanted to write a output module that tried to preseve output they could. If you have the time/feel like combining issues or closing duplicates then just go for it. |
For your example I guess we'll just need to apply mixin call whitespaces to its contents (not counting that this has another trickery with "before or after" stuff).
And they will never be happy unless we have a dedicated flag for each tiny dot or comma (e.g.). Assuming this I'm starting to feel like having a |
@seven-phases-max that might be the most pragmatic thing to do |
Yeah, I don't know that "preserve source formatting" is wise (because they aren't the same before/after code), so much as post-format / output plugins, as mentioned. |
In other words probably we can reject this feature at least: i.e. if we have |
merging to #2176 |
I've searched the issues but seems like nobody asked this.
I use tabs for indentation and spaces for aligning. When I run lessc, the output css uses spaces for indentation and for aligning. Is there any way (or modifier maybe?) to change the output so that it uses tabs for indentation and spaces for aligning?
Cheers!
The text was updated successfully, but these errors were encountered: