From 2e336cb2cae4d898db4aed98485f57e4386e07c4 Mon Sep 17 00:00:00 2001 From: Michael Andrews Date: Wed, 18 Mar 2015 15:49:03 -0700 Subject: [PATCH] Use strip instead of chomp --- lib/masamune/schema/map.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/masamune/schema/map.rb b/lib/masamune/schema/map.rb index 1122097..56207e1 100644 --- a/lib/masamune/schema/map.rb +++ b/lib/masamune/schema/map.rb @@ -47,7 +47,7 @@ def encode(line, separator) fields = [] buffer = '' nested = false - line.chomp.each_char do |char| + line.strip.each_char do |char| case char when '{' buffer << char