1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Properly strip whitespace from imported files in :compressed mode.

This commit is contained in:
Nathan Weizenbaum 2009-06-01 00:50:07 -07:00
parent 3976fb5084
commit 1a6df373e5

View file

@ -7,7 +7,7 @@ module Sass
end end
def to_s(*args) def to_s(*args)
@to_s ||= super() @to_s ||= (style == :compressed ? super().strip : super())
rescue Sass::SyntaxError => e rescue Sass::SyntaxError => e
e.add_backtrace_entry(@filename) e.add_backtrace_entry(@filename)
raise e raise e