ok, I have the following, very simple code:
f = "String1\n\n\nString2\n\n\n"
f.each_line do |t|
t.delete! "\n"
puts t.inspect
end
It removes the \n, but leaves the spaces
"String1"
nil
nil
"String2"
nil
nil
I want it to look like this:
"String1"
"String2"
Thanks in advance for help.