【问题标题】:Susy One Gem Error Deprication WarningSusy One Gem 错误弃用警告
【发布时间】:2014-10-21 16:54:11
【问题描述】:

我正在运行 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。知道发生了什么吗?

谢谢, 斯坦

【问题讨论】:

标签: css ruby gem susy


【解决方案1】:

未来版本的 SASS 将不允许多行字符串,因此您会收到删除它们的警告。

如果您有多行字符串,例如:

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

在每行末尾添加\a字符,并关闭和打开每个引号,例如:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-13
    • 2018-12-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-02
    • 2020-09-10
    • 1970-01-01
    相关资源
    最近更新 更多