简体   繁体   English

Susy One Gem错误贬低警告

[英]Susy One Gem Error Deprication Warning

I am running CodeKit and I get this error when it compiles: 我正在运行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.

that error happens a couple of times in different areas. 该错误在不同区域发生了两次。

And this one: 还有这个:

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'

I have updated my gems and I am running Ruby 2.0.0p481. 我已经更新了gems,并且正在运行Ruby 2.0.0p481。 Any idea what is going on? 知道发生了什么吗?

Thanks, Stan 谢谢,斯坦

Future versions of SASS won't allow multi-line strings, so you're getting the warning to remove them. SASS的未来版本将不允许多行字符串,因此您将收到删除它们的警告。

If you have multi-line strings like: 如果您有多行字符串,例如:

$foo: '.class1, .class2, .class3, 
       .class4, .class5, .class6';

Add a \\a character at the end of each line, and close and open each quotation mark, such as: 在每行的末尾添加一个\\a字符,然后关闭并打开每个引号,例如:

$foo: '.class1, .class2, .class3, \a' 
      '.class4, .class5, .class6';

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM