lib/kumogata/client.rb in kumogata-0.1.6 vs lib/kumogata/client.rb in kumogata-0.1.7
- old
+ new
@@ -182,11 +182,12 @@
if options[:strip]
prev_not_str = false
data = data.map do |item|
if item.kind_of?(String)
- item = item.split("\n").map {|i| i.gsub(/\A\s+/, "") }.join("\n")
- item = " " + item if prev_not_str
+ item = item.split("\n").map {|i|
+ prev_not_str ? i : i.gsub(/\A\s+/, "")
+ }.join("\n")
prev_not_str = false
item
else
prev_not_str = true
item