Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to configure Compass to generate files with Unix line endings on Windows?
    primarykey
    data
    text
    <p>I just installed Compass 0.11.5 on Windows 7 with Ruby 1.9.2.</p> <p>I have my development environment set up to use Unix line endings for all files.</p> <p>I created an initial sass-test project and noticed that all the files it created had Windows line endings. I moved an existing .css file from another project (with unix line endings) into the sass folder and changed the extension to .scss. I ran the 'compass compile' command to generate the .css file for this new file and the .css file it created had Windows line endings.</p> <p>I can't find any configuration options in the Compass documentation to force Compass to generate files with Unix line endings.</p> <p>Is it possible to configure Compass to generate files with Unix line endings on Windows?</p> <h2>Update</h2> <p>After further investigation, there is an option to to pass configuration options to Sass from Compass.</p> <pre><code>Property Name Type Description sass_options Hash These options are passed directly to the Sass compiler. For more details on the format of sass options, please read the sass options documentation. </code></pre> <p>Sass has an option for generating unix line endings:</p> <p><strong>:unix_newlines</strong><br> If true, use Unix-style newlines when writing files. Only has meaning on Windows, and only when Sass is writing the files (in Rack, Rails, or Merb, when using Sass::Plugin directly, or when using the command-line executable).</p> <p>It appears that adding the following line to the sass-test project's config.rb file should solve the issue:</p> <pre><code>sass_options = {:unix_newlines =&gt; true} </code></pre> <p>But, it doesn't have any effect on the resulting .css files created - they still have Windows line endings.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload