我正在运行CodeKit,当它编译时,我得到了这个错误:
DEPRECATION WARNING on line 60, column 11 of /Library/Ruby/Gems/2.0.0/gems/susy-2.1.3/sass/susy/language/susyone/_functions.scss:
Unescaped multiline strings are deprecated and will be removed in a future version of Sass.
To include a newline in a string, use "\a" or "\a " as in CSS.这个错误在不同的区域发生了几次。
还有这一条:
Sass::SyntaxError on line ["280"] of /Library/Ruby/Gems/2.0.0/gems/compass-core-1.1.0.alpha.3/stylesheets/compass/_support.scss: List index is 2 but list is only 1 item long for `nth'我已经更新了我的gem,并且我正在运行Ruby 2.0.0p481。知道这是怎么回事吗?
谢谢,斯坦
发布于 2015-06-24 21:54:29
未来版本的SASS将不允许多行字符串,因此您将收到删除它们的警告。
如果您有多行字符串,如:
$foo: '.class1, .class2, .class3,
.class4, .class5, .class6';在每行末尾添加一个\a字符,并关闭和打开每个引号,例如:
$foo: '.class1, .class2, .class3, \a'
'.class4, .class5, .class6';https://stackoverflow.com/questions/26492092
复制相似问题