lib/luobo.rb in luobo-0.1.2 vs lib/luobo.rb in luobo-0.1.3
- old
+ new
@@ -82,17 +82,17 @@
def do_setup; "" end # call before all tokens
def do_cleanup; "" end # call after all tokens
def do__raw token
if token.line and token.line.size > 0
- token.line#.gsub(/^\s*/, "") + "\n"
+ token.line.chomp + "\n"
else
- ""
+ "\n"
end
end
def do__missing token
- src = token.line
+ src = token.line.chomp + "\n"
src += token.block_code + "\n" if token.block_code
src
end
def dump contents