lib/sass/tree/prop_node.rb in haml-edge-2.3.220 vs lib/sass/tree/prop_node.rb in haml-edge-2.3.221

- old
+ new

@@ -177,11 +177,10 @@ end class << self # @private def val_to_sass(value, opts) - return value.to_sass(opts) unless value.context == :equals val_to_sass_comma(value, opts).to_sass(opts) end private @@ -206,10 +205,11 @@ end def val_to_sass_div(node, opts) unless node.is_a?(Sass::Script::Operation) && node.operator == :div && node.operand1.is_a?(Sass::Script::Number) && - node.operand2.is_a?(Sass::Script::Number) + node.operand2.is_a?(Sass::Script::Number) && + (node.context == :equals || !node.operand1.original || !node.operand2.original) return node end Sass::Script::String.new("(#{node.to_sass(opts)})") end