Skip to content

Commit

Permalink
Fix warning tests for JRuby.
Browse files Browse the repository at this point in the history
Closes gh-73
  • Loading branch information
nex3 committed Aug 10, 2011
1 parent 6ca1c3a commit 628f1b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/sass/tree/visitors/perform.rb
Expand Up @@ -250,7 +250,8 @@ def visit_warn(node)
res = res.value if res.is_a?(Sass::Script::String)
msg = "WARNING: #{res}\n "
msg << @environment.stack_trace.join("\n ")
msg << "\n"
# JRuby doesn't automatically add a newline for #warn
msg << (RUBY_PLATFORM =~ /java/ ? "\n\n" : "\n")
Sass::Util.sass_warn msg
[]
ensure
Expand Down

0 comments on commit 628f1b4

Please sign in to comment.