lib/wlang/compiler/autospacing.rb in wlang-2.0.0.beta vs lib/wlang/compiler/autospacing.rb in wlang-2.0.0

- old
+ new

@@ -13,11 +13,13 @@ [:strconcat] + optimized end def on_wlang(symbols, *fns) fns.inject [:wlang, symbols] do |rw,fn| - fn = Unindent.new.call(fn) - fn = RightStrip.new.call(fn) + if multiline?(fn) + fn = Unindent.new.call(fn) + fn = RightStrip.new.call(fn) + end rw << call(fn) end end private