我正在运行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'
我更新了我的宝石,我正在运行Ruby 2.0.0p481。知道发生了什么事吗?
谢谢, 斯坦
答案 0 :(得分:0)
SASS的未来版本不允许使用多行字符串,因此您会收到警告以删除它们。
如果你有多行字符串,如:
$foo: '.class1, .class2, .class3,
.class4, .class5, .class6';
在每行末尾添加\a
字符,然后关闭并打开每个引号,例如:
$foo: '.class1, .class2, .class3, \a'
'.class4, .class5, .class6';