-
Notifications
You must be signed in to change notification settings - Fork 464
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Make linefeed/indent configurable #787
Conversation
👍 |
Super fantastic. You nailed it! 😸 👍 |
Will this be included in v3.1.0? |
No. It will be in the first patch release 3.1.1 which will be out shortly
|
Any ETAs for The v3.1.0 RTW ? |
Within the next day I'd say ;) (edited) |
Cool! @xzyfer, I invited you on gitter SASS organization channel (https://gitter.im/sass/~chat#), but you aren't enrolled in the organization. :( |
We have one final blocker for 3.1 IMO #697 (comment) |
1a937f2
to
2a1ff23
Compare
2a1ff23
to
706b6df
Compare
Make linefeed/indent configurable
@mgreter, is there a test case for indent and linefeed options in perl or spec? |
Definitely not in the specs (we cannot test different options, beside output style) and also not in |
Yes, actually it is emitting garbage characters. I tested with C-string and then std::string initializer (.c_str). On first runs, it totally ignores the indent setting, but respect the linefeed. But on second run and onward, it is emits some garbage characters with indent, which is forcing libsass to emit |
I just added the options to |
Thanks! I will push my changes shortly. |
Here is the commit: am11/node-sass@fd77d18 (updated) |
Here is how the failing test look like: https://travis-ci.org/am11/node-sass/jobs/55564050#L1380. Over on CIs it is happening intermittently. But locally I can reproduce it persistently. |
@mgreter, finally it worked! sass/node-sass#792 (C)Strings have tendency to give us hard time.. |
Changes Unknown when pulling 706b6df on mgreter:feature/configurable-linefeed into * on sass:master*. |
Added the necessary options to the context and tried to implement the output for newlines and indentations accordingly. In reference to #248 and #752. Please note that you need to provide
const char*
for these options (libsass will not make a copy, since we expect implementers to pass static strings, or strings that the implementor will free after the context gets out of scope)!